From f6c2ed2974deff04b23a41a514fbbd6634bd86d8 Mon Sep 17 00:00:00 2001 From: sigoden Date: Wed, 22 Feb 2023 10:04:40 +0800 Subject: [PATCH] chore: optimize ui --- README.md | 2 +- assets/index.css | 7 +- assets/index.html | 39 +++--- assets/index.js | 294 +++++++++++++++++++++++++++++----------------- 4 files changed, 212 insertions(+), 130 deletions(-) diff --git a/README.md b/README.md index 2db8c62..e2d6cfc 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Dufs is a distinctive utility file server that supports static serving, uploading, searching, accessing control, webdav... -![demo](https://user-images.githubusercontent.com/4012553/189362357-b2f7aa6b-9df0-4438-a57c-c8f92850fc4f.png) +![demo](https://user-images.githubusercontent.com/4012553/220502713-eb5a0560-da3b-463b-81ea-85c4569abc66.png) ## Features diff --git a/assets/index.css b/assets/index.css index 7f89a7e..587bd5f 100644 --- a/assets/index.css +++ b/assets/index.css @@ -58,7 +58,8 @@ body { margin-right: 10px; } -.toolbox>div { +.toolbox > a, +.toolbox > div { /* vertically align with breadcrumb text */ height: 1.1rem; } @@ -147,7 +148,7 @@ body { } .paths-table .cell-actions { - width: 90px; + width: 75px; display: flex; padding-left: 0.6em; } @@ -191,6 +192,7 @@ body { .action-btn { padding-right: 0.3em; + cursor: pointer; } .uploaders-table { @@ -222,7 +224,6 @@ body { font-style: italic; } - @media (min-width: 768px) { .path a { min-width: 400px; diff --git a/assets/index.html b/assets/index.html index 193c3ff..34a14b9 100644 --- a/assets/index.html +++ b/assets/index.html @@ -16,23 +16,28 @@
-
- - + + +