[epiphany] about:applications: Fix missing margin



commit 897066a9e079f245c89582fcc140e19e3efed3e1
Author: Tobias Bernard <tbernard gnome org>
Date:   Mon Jul 22 18:32:07 2019 +0200

    about:applications: Fix missing margin
    
    Note: I can't test this because it doesn't work in Flatpak. The fix is
    the same as for the memory page so it's probably fine, but some extra
    care during review might be good :)

 embed/ephy-about-handler.c | 4 ++--
 src/resources/about.css    | 4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/embed/ephy-about-handler.c b/embed/ephy-about-handler.c
index 1d010a789..d5fce9072 100644
--- a/embed/ephy-about-handler.c
+++ b/embed/ephy-about-handler.c
@@ -253,7 +253,7 @@ handle_applications_finished_cb (EphyAboutHandler       *handler,
                             "    row.parentNode.removeChild(row);"
                             "  }"
                             "</script>"
-                            "</head><body class=\"applications-body\"><h1>%s</h1>"
+                            "</head><div id=\"applications\"><body class=\"applications-body\"><h1>%s</h1>"
                             "<p>%s</p>",
                             _("Applications"),
                             _("Applications"),
@@ -275,7 +275,7 @@ handle_applications_finished_cb (EphyAboutHandler       *handler,
                               _("Installed on:"), app->install_date);
     }
 
-    g_string_append (data_str, "</table></body></html>");
+    g_string_append (data_str, "</table></div></body></html>");
   } else {
     g_autoptr (GtkIconInfo) icon_info = NULL;
     g_autofree gchar *icon = g_strconcat ("application-x-addon-symbolic", NULL);
diff --git a/src/resources/about.css b/src/resources/about.css
index b3aecf082..1217325be 100644
--- a/src/resources/about.css
+++ b/src/resources/about.css
@@ -185,6 +185,10 @@ html.epiphany-html {
 
 /* about:applications */
 
+#applications {
+    margin: 20px;
+}
+
 .applications-body table { width: 100%; border-collapse: collapse; }
 
 .applications-body table, td { 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]