summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkNoteSub.vue
diff options
context:
space:
mode:
authorHellhoundSoftware <keith@keithhacks.cyou>2025-01-14 19:42:35 -0500
committerHellhoundSoftware <keith@keithhacks.cyou>2025-01-14 19:42:35 -0500
commit7825f6e95eab864796b31e589e14cdc2a0353096 (patch)
treeeab4236cea8f41996036ffb07dc372a12a25f8e2 /packages/frontend/src/components/MkNoteSub.vue
parentmerge: make widgets wider in classic view - fixes #874 (!855) (diff)
downloadsharkey-7825f6e95eab864796b31e589e14cdc2a0353096.tar.gz
sharkey-7825f6e95eab864796b31e589e14cdc2a0353096.tar.bz2
sharkey-7825f6e95eab864796b31e589e14cdc2a0353096.zip
Open boost visibility menu on shift-click
Diffstat (limited to 'packages/frontend/src/components/MkNoteSub.vue')
-rw-r--r--packages/frontend/src/components/MkNoteSub.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/packages/frontend/src/components/MkNoteSub.vue b/packages/frontend/src/components/MkNoteSub.vue
index 3523babe46..f9e54f70aa 100644
--- a/packages/frontend/src/components/MkNoteSub.vue
+++ b/packages/frontend/src/components/MkNoteSub.vue
@@ -31,7 +31,7 @@ SPDX-License-Identifier: AGPL-3.0-only
class="_button"
:class="$style.noteFooterButton"
:style="renoted ? 'color: var(--MI_THEME-accent) !important;' : ''"
- @mousedown="renoted ? undoRenote() : boostVisibility()"
+ @mousedown="renoted ? undoRenote() : boostVisibility($event.shiftKey)"
>
<i class="ph-rocket-launch ph-bold ph-lg"></i>
<p v-if="note.renoteCount > 0" :class="$style.noteFooterButtonCount">{{ note.renoteCount }}</p>
@@ -285,8 +285,8 @@ watch(() => props.expandAllCws, (expandAllCws) => {
if (expandAllCws !== showContent.value) showContent.value = expandAllCws;
});
-function boostVisibility() {
- if (!defaultStore.state.showVisibilitySelectorOnBoost) {
+function boostVisibility(forceMenu: boolean = false) {
+ if (!defaultStore.state.showVisibilitySelectorOnBoost && !forceMenu) {
renote(defaultStore.state.visibilityOnBoost);
} else {
os.popupMenu(boostMenuItems(appearNote, renote), renoteButton.value);