From 839980095246878c3ebe18283c418f6c5824a75c Mon Sep 17 00:00:00 2001 From: Wim Brand Date: Thu, 29 Aug 2024 19:35:37 +0200 Subject: [PATCH] More windows 98 tweaks.. because I can't stop --- res/static/style/layout.css | 2 +- svelte/src/filesystem/Menu.svelte | 12 ++-- svelte/src/filesystem/Toolbar.svelte | 2 - .../filesystem/filemanager/ListView.svelte | 63 +++++++++---------- svelte/src/home_page/HomePage.svelte | 3 +- webcontroller/style.go | 10 ++- 6 files changed, 46 insertions(+), 46 deletions(-) diff --git a/res/static/style/layout.css b/res/static/style/layout.css index baa6bb4..16cde12 100644 --- a/res/static/style/layout.css +++ b/res/static/style/layout.css @@ -440,7 +440,7 @@ tr { tr>td, tr>th { - padding: 0.2em 0.5em; + padding: 0.2em; } /* API documentation markup */ diff --git a/svelte/src/filesystem/Menu.svelte b/svelte/src/filesystem/Menu.svelte index 92c001a..e6d1c3d 100644 --- a/svelte/src/filesystem/Menu.svelte +++ b/svelte/src/filesystem/Menu.svelte @@ -8,6 +8,8 @@ let button let dialog export let no_login_label = "Pixeldrain" + +// Hide the label if the screen is smaller than 800px export let hide_name = true export let hide_logo = false export let style = "" @@ -46,7 +48,7 @@ const click = e => {
- {/if} - {#if $nav.permissions.update && !hide_edit} - - {/if} +
+ {#if child.abuse_type !== undefined} + block + {:else if child.id} + {dispatch("node_share_click", index)}} + class="button action_button" + > + share + + {/if} + {#if child.properties && child.properties.branding_enabled && !hide_branding} + + {/if} + {#if $nav.permissions.update && !hide_edit} + + {/if} +
{/each} @@ -104,7 +105,6 @@ export let hide_branding = false color: var(--highlight_text_color); } td { - padding: 4px; vertical-align: middle; } .node_icon { @@ -112,6 +112,7 @@ td { width: 32px; vertical-align: middle; border-radius: 4px; + margin: 2px; } .node_name { width: 100%; @@ -122,16 +123,10 @@ td { min-width: 50px; white-space: nowrap; } -.node_icons { - white-space: nowrap; - text-align: right; - padding: 0; -} -.action_button { - margin: 0; - background: none; - color: var(--body_text_color); - box-shadow: none; +.icons_wrap { + display: flex; + flex-direction: row; + justify-content: end; } .hidden { display: none; diff --git a/svelte/src/home_page/HomePage.svelte b/svelte/src/home_page/HomePage.svelte index d9f387d..0541b3f 100644 --- a/svelte/src/home_page/HomePage.svelte +++ b/svelte/src/home_page/HomePage.svelte @@ -10,7 +10,7 @@ import UploadLoginWall from "./UploadLoginWall.svelte";
@@ -101,6 +101,5 @@ header > h1 { .menu_button_container { display: flex; justify-content: end; - padding-right: 0.5em; } diff --git a/webcontroller/style.go b/webcontroller/style.go index a3f64be..863b202 100644 --- a/webcontroller/style.go +++ b/webcontroller/style.go @@ -552,6 +552,7 @@ footer, .footer_content, .sharebar, .directory_sorters, .directory_area, .container > .directory, +.file_preview > .directory, .directory > .node, .file, .file_button, .upload_task, @@ -577,14 +578,18 @@ footer, .footer_content, border-top-right-radius: 3px !important; box-shadow: inset -1px 0 #0a0a0a,inset 1px 1px #dfdfdf,inset -2px 0 grey,inset 2px 2px #fff !important; } -.headerbar > .wrapper > .button { - color: #fff !important; +.directory > tr { + border: none !important; +} +.button_toggle_navigation { + padding: 8px !important; } input[type="email"], input[type="number"], input[type="password"], input[type="text"], +input[type="date"], select, textarea, pre { border-radius: 0 !important; border: none !important; @@ -602,6 +607,7 @@ code { .file_preview, hr, .toolbar > .separator, +.toolbar > .grid > .separator, .highlight_shaded { border-radius: 0 !important; border: none !important;