Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions app/components/LogoContextMenu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,11 @@ function goToBrand() {
navigateTo({ name: 'brand' })
}

function openNewTab() {
close()
window.open('/', '_blank')
}
Comment thread
coderabbitai[bot] marked this conversation as resolved.

onClickOutside(menuRef, close)

onKeyStroke('Escape', () => {
Expand Down Expand Up @@ -103,7 +108,7 @@ onKeyStroke('Escape', () => {
<ButtonBase
role="menuitem"
size="sm"
class="text-start gap-x-2 border-none !px-3 !py-1.5"
class="text-start gap-x-2 border-none !px-3 !py-1.5 hover:text-accent focus:text-accent"
:classicon="copied ? 'i-lucide:check text-badge-green' : 'i-lucide:copy'"
@click="copySvg"
>
Expand All @@ -112,12 +117,21 @@ onKeyStroke('Escape', () => {
<ButtonBase
role="menuitem"
size="sm"
class="text-start gap-x-2 border-none !px-3 !py-1.5"
class="text-start gap-x-2 border-none !px-3 !py-1.5 hover:text-accent focus:text-accent"
classicon="i-lucide:palette"
@click="goToBrand"
>
{{ $t('logo_menu.browse_brand') }}
</ButtonBase>
<ButtonBase
role="menuitem"
size="sm"
class="text-start gap-x-2 border-none !px-3 !py-1.5 hover:text-accent focus:text-accent"
classicon="i-lucide:external-link"
@click="openNewTab"
>
{{ $t('logo_menu.open_new_tab') }}
</ButtonBase>
</div>
</Transition>
</Teleport>
Expand Down
3 changes: 2 additions & 1 deletion i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,8 @@
"logo_menu": {
"copy_svg": "Copy logo as SVG",
"copied": "Copied!",
"browse_brand": "Browse brand kit"
"browse_brand": "Browse brand kit",
"open_new_tab": "Open npmx in new tab"
},
"brand": {
"title": "Brand",
Expand Down
3 changes: 2 additions & 1 deletion i18n/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1808,7 +1808,8 @@
"logo_menu": {
"copy_svg": "Kopieer logo als SVG",
"copied": "Gekopieerd!",
"browse_brand": "Bekijk brand kit"
"browse_brand": "Bekijk brand kit",
"open_new_tab": "Open npmx in nieuw tabblad"
},
"brand": {
"title": "Merk",
Expand Down
3 changes: 3 additions & 0 deletions i18n/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -5622,6 +5622,9 @@
},
"browse_brand": {
"type": "string"
},
"open_new_tab": {
"type": "string"
}
},
"additionalProperties": false
Expand Down
Loading