Skip to content

Commit ab9d274

Browse files
committed
fix: reduce context menu size — remove min-w, use sm buttons
1 parent 8cf0210 commit ab9d274

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

app/components/LogoContextMenu.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,23 @@ onKeyStroke('Escape', () => {
7373
ref="menuRef"
7474
role="menu"
7575
tabindex="-1"
76-
class="fixed z-[999] min-w-48 bg-bg-elevated border border-border rounded-lg shadow-lg py-1 origin-top-left focus:outline-none motion-reduce:transition-none"
76+
class="fixed z-[999] bg-bg-elevated border border-border rounded-lg shadow-lg py-1 origin-top-left focus:outline-none motion-reduce:transition-none"
7777
:style="{ left: `${x}px`, top: `${y}px` }"
7878
@keydown.escape="close"
7979
>
8080
<ButtonBase
8181
role="menuitem"
82-
class="w-full text-start gap-x-3 border-none"
82+
size="sm"
83+
class="w-full text-start gap-x-2 border-none !px-3 !py-1.5"
8384
:classicon="copied ? 'i-lucide:check text-badge-green' : 'i-lucide:copy'"
8485
@click="copySvg"
8586
>
8687
{{ copied ? $t('logo_menu.copied') : $t('logo_menu.copy_svg') }}
8788
</ButtonBase>
8889
<ButtonBase
8990
role="menuitem"
90-
class="w-full text-start gap-x-3 border-none"
91+
size="sm"
92+
class="w-full text-start gap-x-2 border-none !px-3 !py-1.5"
9193
classicon="i-lucide:palette"
9294
@click="goToBrand"
9395
>

0 commit comments

Comments
 (0)