mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-10-12 16:02:56 +00:00
feat: pad the home table, dash empty run cells and narrow home alerts
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
eebfb30443
commit
ebb38ef92f
@@ -201,7 +201,7 @@
|
||||
data-row-keyboard-selected={keyboardSelected ? 'true' : undefined}
|
||||
class={twMerge(
|
||||
HOME_TABLE_GRID,
|
||||
'group/row relative w-full px-3 py-2.5 rounded-md',
|
||||
'group/row relative w-full pl-5 pr-3 py-2.5 rounded-md',
|
||||
disabled ? 'opacity-25' : 'hover:bg-surface-hover',
|
||||
inSelectionMode ? 'cursor-pointer select-none' : '',
|
||||
rowSelection?.selected
|
||||
|
||||
@@ -2185,7 +2185,7 @@
|
||||
{#each [...visiblePipelineFolders].sort() as folder (folder)}
|
||||
<a
|
||||
href="{base}/pipeline/{encodeURIComponent(folder)}"
|
||||
class="w-full inline-flex items-center gap-4 px-3 py-2 rounded-md hover:bg-surface-hover transition-colors text-sm"
|
||||
class="w-full inline-flex items-center gap-4 pl-5 pr-3 py-2 rounded-md hover:bg-surface-hover transition-colors text-sm"
|
||||
>
|
||||
<NetworkIcon size={16} class="text-emerald-600 dark:text-emerald-400" />
|
||||
<span class="text-xs font-medium text-emphasis truncate">Pipeline · f/{folder}</span>
|
||||
@@ -2245,7 +2245,7 @@
|
||||
</CenteredPage>
|
||||
|
||||
{#snippet tableHeader()}
|
||||
<div class="{HOME_TABLE_GRID} px-3 py-1.5 border-b text-2xs font-medium text-secondary">
|
||||
<div class="{HOME_TABLE_GRID} pl-5 pr-3 py-1.5 border-b text-2xs font-medium text-secondary">
|
||||
<div class="flex items-center">
|
||||
{#if homeSelection.available}
|
||||
{@const state = homeSelection.renderedSelection}
|
||||
|
||||
@@ -72,7 +72,7 @@
|
||||
|
||||
{#if homeActivity}
|
||||
<div class="relative z-[1] hidden lg:flex w-5 shrink-0 justify-center">
|
||||
{#if kind}
|
||||
{#if kind && !(activity && runs.length === 0)}
|
||||
<Tooltip>
|
||||
<a
|
||||
href="{base}/runs/{path}"
|
||||
@@ -106,6 +106,8 @@
|
||||
{/if}
|
||||
{/snippet}
|
||||
</Tooltip>
|
||||
{:else}
|
||||
<span class="text-hint text-2xs opacity-40">–</span>
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@
|
||||
}: Props = $props()
|
||||
|
||||
// The home table draws no separators between its rows.
|
||||
const separator = isHomeTable() ? 'rounded-md hover:bg-surface-hover' : 'border-b'
|
||||
const separator = isHomeTable() ? 'pl-5 rounded-md hover:bg-surface-hover' : 'border-b'
|
||||
|
||||
let visualDepth = $derived(depth + indent)
|
||||
|
||||
|
||||
@@ -287,7 +287,7 @@
|
||||
<!-- svelte-ignore a11y_no_static_element_interactions -->
|
||||
<div
|
||||
onclick={toggleOtherUsers}
|
||||
class="px-3 py-2 rounded-md hover:bg-surface-hover w-full flex flex-row items-center justify-between cursor-pointer"
|
||||
class="pl-5 pr-3 py-2 rounded-md hover:bg-surface-hover w-full flex flex-row items-center justify-between cursor-pointer"
|
||||
>
|
||||
<div class="flex flex-row items-center gap-4">
|
||||
<Users size={16} class="text-secondary" />
|
||||
|
||||
@@ -278,14 +278,17 @@
|
||||
{/if}
|
||||
|
||||
{#if $workspaceStore == 'admins'}
|
||||
<Alert title="Admins workspace">
|
||||
The Admins workspace is for admins only and contains scripts whose purpose is to manage your
|
||||
Windmill instance, such as keeping resource types up to date.
|
||||
</Alert>
|
||||
<div class="my-4"></div>
|
||||
<div class="max-w-[40rem] mx-auto mb-4">
|
||||
<Alert title="Admins workspace">
|
||||
The Admins workspace is for admins only and contains scripts whose purpose is to manage
|
||||
your Windmill instance, such as keeping resource types up to date.
|
||||
</Alert>
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<NoDirectDeployAlert onUpdateCanEditStatus={(v) => (showCreateButtons = v)} />
|
||||
<div class="max-w-[40rem] mx-auto">
|
||||
<NoDirectDeployAlert onUpdateCanEditStatus={(v) => (showCreateButtons = v)} />
|
||||
</div>
|
||||
|
||||
{#if tab == 'hub'}
|
||||
<div class="flex flex-col gap-y-16">
|
||||
|
||||
Reference in New Issue
Block a user