From 7eb200f2cec07e9477a410d3dc338d838f3c8e82 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 5 Aug 2021 22:43:14 +0900 Subject: [PATCH] Imorive client --- src/client/components/modal-page-window.vue | 25 +--- src/client/components/page-window.vue | 13 +- src/client/components/ui/window.vue | 10 +- src/client/pages/timeline.vue | 10 +- src/client/ui/_common_/header.vue | 152 ++++++++++++-------- src/client/ui/deck/main-column.vue | 6 +- src/client/ui/default.side.vue | 2 +- src/client/ui/default.vue | 11 +- 8 files changed, 126 insertions(+), 103 deletions(-) diff --git a/src/client/components/modal-page-window.vue b/src/client/components/modal-page-window.vue index 7be4045a8..ddf8ac446 100644 --- a/src/client/components/modal-page-window.vue +++ b/src/client/components/modal-page-window.vue @@ -2,12 +2,9 @@
- - - + -
@@ -177,35 +174,19 @@ export default defineComponent({ flex-shrink: 0; box-shadow: 0px 1px var(--divider); - > button { - height: $height; - width: $height; - - @media (max-width: 500px) { - height: $height-narrow; - width: $height-narrow; - } - } - > .title { flex: 1; - line-height: $height; - padding-left: 32px; + height: $height; font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - pointer-events: none; @media (max-width: 500px) { - line-height: $height-narrow; + height: $height-narrow; padding-left: 16px; } } - - > button + .title { - padding-left: 0; - } } > .body { diff --git a/src/client/components/page-window.vue b/src/client/components/page-window.vue index 26499f705..c83b040dd 100644 --- a/src/client/components/page-window.vue +++ b/src/client/components/page-window.vue @@ -3,16 +3,12 @@ :initial-width="500" :initial-height="500" :can-resize="true" - :close-right="true" + :close-button="false" :contextmenu="contextmenu" @closed="$emit('closed')" > -
@@ -139,6 +135,10 @@ export default defineComponent({ this.navigate(this.history.pop(), false); }, + close() { + this.$refs.window.close(); + }, + expand() { this.$router.push(this.path); this.$refs.window.close(); @@ -155,6 +155,5 @@ export default defineComponent({ diff --git a/src/client/components/ui/window.vue b/src/client/components/ui/window.vue index ce621ac6f..f8b7d82d4 100644 --- a/src/client/components/ui/window.vue +++ b/src/client/components/ui/window.vue @@ -3,15 +3,11 @@
- - + - - -
@@ -86,10 +82,10 @@ export default defineComponent({ required: false, default: false, }, - closeRight: { + closeButton: { type: Boolean, required: false, - default: false, + default: true, }, mini: { type: Boolean, diff --git a/src/client/pages/timeline.vue b/src/client/pages/timeline.vue index 966146d92..55c474326 100644 --- a/src/client/pages/timeline.vue +++ b/src/client/pages/timeline.vue @@ -1,8 +1,8 @@