fix(ui): auto-profile-hover-on-history-view (#3368)

This commit is contained in:
nove-b 2025-09-30 01:41:13 +09:00 committed by GitHub
parent 1a5c3eb671
commit 32423164f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 1 deletions

View file

@ -82,7 +82,7 @@ function handleFavouritedBoostedByClose() {
> >
<ModalMediaPreview v-if="isMediaPreviewOpen" @close="closeMediaPreview()" /> <ModalMediaPreview v-if="isMediaPreviewOpen" @close="closeMediaPreview()" />
</ModalDialog> </ModalDialog>
<ModalDialog v-model="isEditHistoryDialogOpen" max-w-125> <ModalDialog v-model="isEditHistoryDialogOpen" :focus-first-element="false" max-w-125>
<StatusEditPreview v-if="statusEdit" :edit="statusEdit" /> <StatusEditPreview v-if="statusEdit" :edit="statusEdit" />
</ModalDialog> </ModalDialog>
<ModalDialog v-model="isCommandPanelOpen" max-w-fit flex> <ModalDialog v-model="isCommandPanelOpen" max-w-fit flex>

View file

@ -10,6 +10,7 @@ const {
closeByMask = true, closeByMask = true,
useVIf = true, useVIf = true,
keepAlive = false, keepAlive = false,
focusFirstElement = true,
} = defineProps<{ } = defineProps<{
// level of depth // level of depth
zIndex?: number zIndex?: number
@ -21,6 +22,8 @@ const {
keepAlive?: boolean keepAlive?: boolean
// The aria-labelledby id for the dialog. // The aria-labelledby id for the dialog.
dialogLabelledBy?: string dialogLabelledBy?: string
// Whether to focus on the first element when the modal opens.
focusFirstElement?: boolean
}>() }>()
const emit = defineEmits<{ const emit = defineEmits<{
@ -45,6 +48,7 @@ const { activate } = useFocusTrap(elDialogRoot, {
escapeDeactivates: true, escapeDeactivates: true,
preventScroll: true, preventScroll: true,
returnFocusOnDeactivate: true, returnFocusOnDeactivate: true,
initialFocus: focusFirstElement ? undefined : false,
}) })
defineExpose({ defineExpose({