mirror of
https://github.com/ArthurDanjou/artchat.git
synced 2026-01-28 08:55:58 +01:00
refactor: streamline component structure and enhance accessibility features
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user