[epiphany] about:memory: Fix the missing margin around the page



commit d0afaf00a4c56175f80646fdef84e9c07190fe72
Author: Tobias Bernard <tbernard gnome org>
Date:   Wed Jul 17 20:35:42 2019 +0200

    about:memory: Fix the missing margin around the page
    
    The changes to global CSS needed for other pages made this necessary

 embed/ephy-about-handler.c | 5 ++++-
 src/resources/about.css    | 4 ++++
 2 files changed, 8 insertions(+), 1 deletion(-)
---
diff --git a/embed/ephy-about-handler.c b/embed/ephy-about-handler.c
index bb4fb3189..ad782a68a 100644
--- a/embed/ephy-about-handler.c
+++ b/embed/ephy-about-handler.c
@@ -111,12 +111,15 @@ handle_memory_finished_cb (EphyAboutHandler       *handler,
     g_string_append_printf (data_str, "<head><title>%s</title>"
                             "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" />"
                             "<link href=\""EPHY_PAGE_TEMPLATE_ABOUT_CSS "\" rel=\"stylesheet\" 
type=\"text/css\">"
-                            "</head><body>",
+                            "</head><body>"
+                            "<div id='memory'>",
                             _("Memory usage"));
 
     g_string_append_printf (data_str, "<h1>%s</h1>", _("Memory usage"));
     g_string_append (data_str, memory);
     g_free (memory);
+
+    g_string_append (data_str, "</div>");
   }
 
   g_string_append (data_str, "</html>");
diff --git a/src/resources/about.css b/src/resources/about.css
index 5d392e0ef..d6209aac2 100644
--- a/src/resources/about.css
+++ b/src/resources/about.css
@@ -126,6 +126,10 @@ html.epiphany-html {
 
 /* about:memory */
 
+#memory {
+  margin: 20px;
+}
+
 .memory-table caption {
     font-size: 16pt;
     font-weight: bold;


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