public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [flatpaks/flatpak-runtime] f45: Make the summary popups less annoying
@ 2026-09-11 14:40 Owen W. Taylor
  0 siblings, 0 replies; only message in thread
From: Owen W. Taylor @ 2026-09-11 14:40 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : flatpaks/flatpak-runtime
            Branch : f45
            Commit : 6423b96b14471589691f2c37ff5851932c95fcca
            Author : Owen W. Taylor <otaylor@fishsoup.net>
            Date   : 2018-02-14T15:14:47-05:00
            Stats  : +30/-3 in 6 file(s)
            URL    : https://src.fedoraproject.org/flatpaks/flatpak-runtime/c/6423b96b14471589691f2c37ff5851932c95fcca?branch=f45

            Log:
            Make the summary popups less annoying

* On pages with pagination, move them up above the pagination
* Add a close button

---
diff --git a/reports/applications.html b/reports/applications.html
index d946a11..a6dcaf0 100644
--- a/reports/applications.html
+++ b/reports/applications.html
@@ -31,6 +31,7 @@
       </tbody>
     </table>
     <div class="summary">
+      <div id="summaryClose" onclick="closeSummary()">X</div>
       <table>
 	<tr><td class="sample no-flathub"></td><td> - In Fedora, not in Flathub</td></tr>
 	<tr><td class="sample no-fedora"></td><td> - In Flathub, not in Fedora</td></tr>

diff --git a/reports/extra-package-app.html b/reports/extra-package-app.html
index 2aee6a1..c7fdc1b 100644
--- a/reports/extra-package-app.html
+++ b/reports/extra-package-app.html
@@ -33,6 +33,7 @@
       <ul class="apps"></ul>
     </div>
     <div class="summary">
+      <div id="summaryClose" onclick="closeSummary()">X</div>
       <div class="note">
 	Shows number of applications using each package. Click on application counts for details. Click on headers to sort.
       </div>

diff --git a/reports/report.css b/reports/report.css
index 6efe9b8..5f6f99a 100644
--- a/reports/report.css
+++ b/reports/report.css
@@ -27,8 +27,6 @@ ul.header a {
     color: black;
 }
 
-/* Runtime Report */
-
 .summary {
     border: 1px solid black;
     border-radius: 5px;
@@ -38,12 +36,31 @@ ul.header a {
     position: fixed;
     box-shadow: 5px 5px 5px;
     right: 5px;
-    bottom: 5px;
+    bottom: 50px;
 }
+
 .summary .note {
     padding-top: 5px;
     font-style: italic;
 }
+
+#summaryClose {
+    position: absolute;
+    right: 4px;
+    top: 4px;
+    border-radius: 5px;
+    border: 1px solid black;
+    background: #f8f8f8;
+    padding: 0px 3px;
+    cursor: default;
+}
+
+/* Runtime Report */
+
+#runtimeReport .summary {
+    bottom: 5px;
+}
+
 table.packages {
     border-collapse: collapse;
 }

diff --git a/reports/report.js b/reports/report.js
index 17c1e5d..b24c701 100644
--- a/reports/report.js
+++ b/reports/report.js
@@ -114,3 +114,7 @@ function startAppPackages() {
     startPackageTable('#runtimeTable', 'runtime')
     startPackageTable('#extraTable', 'extra')
 }
+
+function closeSummary() {
+    $('.summary').hide();
+}

diff --git a/reports/runtime-package-app.html b/reports/runtime-package-app.html
index 88269f9..a8da6b5 100644
--- a/reports/runtime-package-app.html
+++ b/reports/runtime-package-app.html
@@ -33,6 +33,7 @@
       <ul class="apps"></ul>
     </div>
     <div class="summary">
+      <div id="summaryClose" onclick="closeSummary()">X</div>
       <div class="note">
 	Shows number of applications using each package. Click on application counts for details. Click on headers to sort.
       </div>

diff --git a/runtime-template.html b/runtime-template.html
index 4e9fd93..0447eed 100644
--- a/runtime-template.html
+++ b/runtime-template.html
@@ -3,6 +3,8 @@
   <head>
     <meta charset="UTF-8">
     <link href="report.css" rel="stylesheet">
+    <script src="jslib/jquery-3.3.1.min.js"></script>
+    <script src="report.js"></script>
   </head>
   <body id="runtimeReport">
     <ul class="header">
@@ -12,6 +14,7 @@
       <li><a href="extra-package-app.html">Extra Package -> Application</a></li>
     </ul>
     <div class="summary">
+      <div id="summaryClose" onclick="closeSummary()">X</div>
       <table>
 	<tr><td>FD/P</td><td> - org.freedesktop.Platform
 	    {%if unmatched.freedesktop_platform > 0%}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 14:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 14:40 [flatpaks/flatpak-runtime] f45: Make the summary popups less annoying Owen W. Taylor

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox