diff --git a/src/client/components/modal-page-window.vue b/src/client/components/modal-page-window.vue index 7be4045a84..ddf8ac446e 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 26499f7054..c83b040dd8 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 ce621ac6fd..f8b7d82d4a 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 966146d92b..55c4743264 100644 --- a/src/client/pages/timeline.vue +++ b/src/client/pages/timeline.vue @@ -1,8 +1,8 @@