From 14fa8b177d4520695a54f6ab52e498f9b9370a5d Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 2 Dec 2021 20:46:16 +0900 Subject: [PATCH] client: tweak ui --- packages/client/src/components/global/spacer.vue | 2 +- packages/client/src/components/note-detailed.vue | 4 ++-- packages/client/src/components/note.vue | 3 ++- packages/client/src/ui/chat/note.vue | 3 ++- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/packages/client/src/components/global/spacer.vue b/packages/client/src/components/global/spacer.vue index 34297a3c8..417282ad1 100644 --- a/packages/client/src/components/global/spacer.vue +++ b/packages/client/src/components/global/spacer.vue @@ -34,7 +34,7 @@ export default defineComponent({ const content = ref(); const margin = ref(0); const adjust = (rect: { width: number; height: number; }) => { - if (rect.width > (props.contentMax || 500)) { + if (rect.width > props.contentMax || rect.width > 500) { margin.value = props.marginMax; } else { margin.value = props.marginMin; diff --git a/packages/client/src/components/note-detailed.vue b/packages/client/src/components/note-detailed.vue index 03f6a767f..55a02f1e7 100644 --- a/packages/client/src/components/note-detailed.vue +++ b/packages/client/src/components/note-detailed.vue @@ -649,7 +649,7 @@ export default defineComponent({ text: this.$ts.pin, action: () => this.togglePin(true) } : undefined, - ...(this.$i.isModerator || this.$i.isAdmin ? [ + /*...(this.$i.isModerator || this.$i.isAdmin ? [ null, { icon: 'fas fa-bullhorn', @@ -657,7 +657,7 @@ export default defineComponent({ action: this.promote }] : [] - ), + ),*/ ...(this.appearNote.userId != this.$i.id ? [ null, { diff --git a/packages/client/src/components/note.vue b/packages/client/src/components/note.vue index 25d4b4814..c4040388a 100644 --- a/packages/client/src/components/note.vue +++ b/packages/client/src/components/note.vue @@ -623,6 +623,7 @@ export default defineComponent({ text: this.$ts.pin, action: () => this.togglePin(true) } : undefined, + /* ...(this.$i.isModerator || this.$i.isAdmin ? [ null, { @@ -631,7 +632,7 @@ export default defineComponent({ action: this.promote }] : [] - ), + ),*/ ...(this.appearNote.userId != this.$i.id ? [ null, { diff --git a/packages/client/src/ui/chat/note.vue b/packages/client/src/ui/chat/note.vue index 512c87a59..6927dd0ea 100644 --- a/packages/client/src/ui/chat/note.vue +++ b/packages/client/src/ui/chat/note.vue @@ -632,6 +632,7 @@ export default defineComponent({ text: this.$ts.pin, action: () => this.togglePin(true) } : undefined, + /* ...(this.$i.isModerator || this.$i.isAdmin ? [ null, { @@ -640,7 +641,7 @@ export default defineComponent({ action: this.promote }] : [] - ), + ),*/ ...(this.appearNote.userId != this.$i.id ? [ null, {