Skip to content

Commit 6828f18

Browse files
committed
Increase minimum tab width and hide close buttons on inactive tabs
1 parent d4731a6 commit 6828f18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: packages/ui/src/components/ModernTab.svelte

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
{/if}
7878
</span>
7979

80-
{#if canClose && !readonly}
80+
{#if canClose && !readonly && highlighted}
8181
<div class="close-button {orientation}">
8282
<ButtonIcon icon={IconClose} size="min" on:click={() => dispatch('close')} />
8383
</div>
@@ -109,7 +109,7 @@
109109
padding: 0.125rem 0.125rem 0.125rem 0.5rem;
110110
height: 1.625rem;
111111
min-height: 1.625rem;
112-
min-width: 4rem;
112+
min-width: 5rem;
113113
}
114114
115115
&.vertical {

0 commit comments

Comments
 (0)