From d4c4e30fe4b08bf03b9e7dc6be568aba8b15ae47 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 11 Apr 2021 12:31:24 +0900 Subject: [PATCH] Tweak UI --- src/client/components/abuse-report-window.vue | 18 +++++++----------- src/client/components/drive.vue | 2 +- .../components/notification-setting-window.vue | 4 ++-- src/client/style.scss | 10 ++++++++++ src/client/ui/_common_/header.vue | 9 ++++++++- 5 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/client/components/abuse-report-window.vue b/src/client/components/abuse-report-window.vue index 35732d573..e92bd69ef 100644 --- a/src/client/components/abuse-report-window.vue +++ b/src/client/components/abuse-report-window.vue @@ -9,18 +9,14 @@
-
-
- - {{ $ts.details }} - - -
+
+ + {{ $ts.details }} + +
-
-
- {{ $ts.send }} -
+
+ {{ $ts.send }}
diff --git a/src/client/components/drive.vue b/src/client/components/drive.vue index 2c8c16c48..103ae9c11 100644 --- a/src/client/components/drive.vue +++ b/src/client/components/drive.vue @@ -11,7 +11,7 @@ {{ folder.name }}
-
-
+
{{ $ts.useGlobalSetting }}
-
+
{{ $ts.notificationSettingDesc }} {{ $ts.disableAll }} {{ $ts.enableAll }} diff --git a/src/client/style.scss b/src/client/style.scss index a02cd1a48..62e3e3c93 100644 --- a/src/client/style.scss +++ b/src/client/style.scss @@ -336,11 +336,21 @@ hr { ._hr { margin: var(--margin) calc(var(--root-margin, 32px) * -1); + border-top: solid 0.5px var(--divider); } @media (max-width: 500px) { --root-margin: 10px; } + + & + ._root { + &:before { + content: ""; + display: block; + margin: var(--root-margin) calc(var(--root-margin, 32px) * -1); + border-top: solid 0.5px var(--divider); + } + } } ._flat_ { diff --git a/src/client/ui/_common_/header.vue b/src/client/ui/_common_/header.vue index 6b09e3122..347c60f02 100644 --- a/src/client/ui/_common_/header.vue +++ b/src/client/ui/_common_/header.vue @@ -99,7 +99,14 @@ export default defineComponent({ }, menu(ev) { - const menu = this.info.menu ? this.info.menu() : []; + let menu = this.info.menu ? this.info.menu() : []; + if (!this.showActions && this.info.actions) { + menu = [...this.info.actions.map(x => ({ + text: x.text, + icon: x.icon, + action: x.handler + })), menu.length > 0 ? null : undefined, ...menu]; + } if (this.info.share) { if (menu.length > 0) menu.push(null); menu.push({