refactor: streamline component structure and enhance accessibility features

This commit is contained in:
2025-09-04 18:43:14 +02:00
parent 34d2e88e9f
commit 97d7cddaa5
14 changed files with 38 additions and 71 deletions

View File

@@ -46,8 +46,9 @@ defineShortcuts({
})
const activeElement = useActiveElement()
watch(activeElement, () => {
if (activeElement.value instanceof HTMLElement && ['INPUT', 'TEXTAREA'].includes(activeElement.value.tagName)) {
watch(openMessageModal, async () => {
await nextTick()
if (activeElement.value instanceof HTMLElement) {
activeElement.value.blur()
}
})
@@ -201,6 +202,7 @@ function goHome() {
/>
</UTooltip>
<UTooltip
v-if="router.currentRoute.value.name !== 'canva'"
:text="t('palette.tooltip.canva')"
arrow
:content="toolTipContent"