mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-19 09:22:12 +00:00
fix tab size
This commit is contained in:
1 parent
e57949dc01
commit
67a47cf065
1 file changed
+23
-15
@@ -110,13 +110,16 @@
|
|||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<ContextMenu.Trigger class="grow truncate">
|
<!-- A tab of the horizontal list is as wide as its content, said explicitly: a width that is a
|
||||||
|
percentage of a parent that is as wide as its content is not updated by WebKit when the
|
||||||
|
content changes (the indicators come and go) -->
|
||||||
|
<ContextMenu.Trigger class={orientation === 'vertical' ? 'grow truncate' : ''}>
|
||||||
<Button
|
<Button
|
||||||
variant="ghost"
|
variant="ghost"
|
||||||
class="relative w-full p-0 overflow-hidden border-none focus-visible:ring-0 focus-visible:ring-offset-0 flex flex-row {orientation ===
|
class="relative p-0 overflow-hidden border-none focus-visible:ring-0 focus-visible:ring-offset-0 flex flex-row {orientation ===
|
||||||
'vertical'
|
'vertical'
|
||||||
? 'h-7'
|
? 'w-full h-7'
|
||||||
: 'h-9 px-1.5'} pointer-events-auto"
|
: 'w-max h-9 px-1.5'} pointer-events-auto"
|
||||||
>
|
>
|
||||||
{#if node.type === 'file' || node.type === 'track'}
|
{#if node.type === 'file' || node.type === 'track'}
|
||||||
<MetadataDialog bind:open={openEditMetadata} {fileState} {node} />
|
<MetadataDialog bind:open={openEditMetadata} {fileState} {node} />
|
||||||
@@ -138,9 +141,11 @@
|
|||||||
></div>
|
></div>
|
||||||
{/if}
|
{/if}
|
||||||
<span
|
<span
|
||||||
class="grow text-left truncate ml-1 flex flex-row items-center {hidden
|
class="grow text-left ml-1 flex flex-row items-center {orientation === 'vertical'
|
||||||
|
? 'truncate'
|
||||||
|
: 'whitespace-nowrap'} {hidden ? 'text-muted-foreground' : ''} {isCut
|
||||||
? 'text-muted-foreground'
|
? 'text-muted-foreground'
|
||||||
: ''} {isCut ? 'text-muted-foreground' : ''}"
|
: ''}"
|
||||||
oncontextmenu={(e) => {
|
oncontextmenu={(e) => {
|
||||||
if (embedding) {
|
if (embedding) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@@ -182,30 +187,33 @@
|
|||||||
<MapPin size="16" class="mx-1 shrink-0" />
|
<MapPin size="16" class="mx-1 shrink-0" />
|
||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
|
<!-- a tab of the horizontal list is as wide as its content: the name is not cut -->
|
||||||
<span
|
<span
|
||||||
class="grow select-none truncate {orientation === 'vertical'
|
class="grow select-none {orientation === 'vertical'
|
||||||
? 'last:mr-2'
|
? 'truncate last:mr-2'
|
||||||
: ''}"
|
: 'shrink-0'}"
|
||||||
>
|
>
|
||||||
{label}
|
{label}
|
||||||
</span>
|
</span>
|
||||||
{#if unsaved}
|
{#if unsaved || hidden}
|
||||||
<span
|
<span
|
||||||
class="size-1.5 shrink-0 rounded-full bg-foreground ml-1 {orientation ===
|
class="flex flex-row items-center gap-1 shrink-0 pl-1 {orientation ===
|
||||||
'vertical'
|
'vertical'
|
||||||
? 'mr-3'
|
? 'mr-3'
|
||||||
: ''}"
|
: ''}"
|
||||||
></span>
|
>
|
||||||
|
{#if unsaved}
|
||||||
|
<span class="size-1.5 rounded-full bg-foreground"></span>
|
||||||
{/if}
|
{/if}
|
||||||
{#if hidden}
|
{#if hidden}
|
||||||
<EyeOff
|
<EyeOff
|
||||||
size="10"
|
size="10"
|
||||||
class="shrink-0 size-3.5 ml-1 {orientation === 'vertical'
|
class="size-3.5 {orientation === 'vertical' ? '' : 'mt-0.5'}"
|
||||||
? 'mr-3'
|
|
||||||
: 'mt-0.5'}"
|
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
</span>
|
</span>
|
||||||
|
{/if}
|
||||||
|
</span>
|
||||||
</Button>
|
</Button>
|
||||||
</ContextMenu.Trigger>
|
</ContextMenu.Trigger>
|
||||||
<ContextMenu.Content>
|
<ContextMenu.Content>
|
||||||
|
|||||||
Reference in new issue
Block a user