From 815032456a1927ddc1ac39969c4219361cf4a810 Mon Sep 17 00:00:00 2001 From: joshuaboud Date: Thu, 3 Jun 2021 13:53:19 -0300 Subject: [PATCH] style notification and rename write-chunk.py --- navigator/navigator.css | 18 +++++++++++++++++- navigator/navigator.js | 2 +- .../{write-chunk.py => write-chunks.py} | 0 3 files changed, 18 insertions(+), 2 deletions(-) rename navigator/scripts/{write-chunk.py => write-chunks.py} (100%) diff --git a/navigator/navigator.css b/navigator/navigator.css index b6caaf2..769a562 100644 --- a/navigator/navigator.css +++ b/navigator/navigator.css @@ -499,18 +499,34 @@ input:checked + .slider:before { padding: 5px; display: flex; flex-flow: column-reverse nowrap; + align-items: stretch; + max-height: 50%; + overflow-y: auto; } .nav-notification { + margin: 5px; + position: relative; + display: flex; + flex-flow: column nowrap; + align-items: stretch; z-index: 10; flex-grow: 0; padding: 5px; background-color: var(--container); - border: 1px solid var(--border); + border-radius: var(--nav-border-radius); color: var(--font); } .nav-notification-header { + position: relative; + z-index: 10; font-size: 120%; font-weight: bold; } + +.nav-notification-header > progress { + position: relative; + z-index: 10; +} + diff --git a/navigator/navigator.js b/navigator/navigator.js index 294da56..2ffd21a 100644 --- a/navigator/navigator.js +++ b/navigator/navigator.js @@ -894,7 +894,7 @@ class FileUpload { upload() { this.make_html_element(); - this.proc = cockpit.spawn(["/usr/share/cockpit/navigator/scripts/write-chunk.py", this.path], {err: "out", superuser: "try"}); + this.proc = cockpit.spawn(["/usr/share/cockpit/navigator/scripts/write-chunks.py", this.path], {err: "out", superuser: "try"}); this.proc.fail((e, data) => { window.alert(data); }) diff --git a/navigator/scripts/write-chunk.py b/navigator/scripts/write-chunks.py similarity index 100% rename from navigator/scripts/write-chunk.py rename to navigator/scripts/write-chunks.py