Skip to content

Commit 2dd8fda

Browse files
authored
Tab cleanup, toggle button icons, padding consistency (#2894)
* Consistent padding, remove bottom border on workflow header, update togglebutton to hide slot if leading icon on sm * Remove custom classes from tablist use * Another padding fix * Final padding
1 parent ebcf057 commit 2dd8fda

8 files changed

Lines changed: 16 additions & 9 deletions

File tree

src/lib/components/schedule/schedules-calendar-view.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848
<Tabs class="mt-8 w-full">
4949
<h2 class="mb-4">{translate('schedules.schedule-spec')}</h2>
50-
<TabList label="Schedule Tabs" class="flex flex-wrap gap-6">
50+
<TabList label="Schedule Tabs">
5151
{#if schedule}
5252
<Tab
5353
label="Existing"

src/lib/components/workflow/workflow-relationships-old.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
} = workflowRelationships);
3535
</script>
3636

37-
<div class="flex flex-col gap-4 px-2 py-4 md:px-4 lg:px-8">
37+
<div class="flex flex-col gap-4 px-4 py-4 xl:px-8">
3838
<div class="flex w-full flex-wrap gap-4">
3939
{#if scheduleId}
4040
<SchedulerTable {scheduleId} {namespace} />

src/lib/holocene/tab/tab-list.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@
1919
</script>
2020

2121
<div
22-
class={merge('flex flex-row gap-4 border-b border-subtle', className)}
22+
class={merge(
23+
'flex flex-wrap gap-x-4 gap-y-1 border-b border-subtle',
24+
className,
25+
)}
2326
role="tablist"
2427
aria-label={label}
2528
{...restProps}

src/lib/holocene/toggle-button/toggle-button.svelte

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,5 +50,9 @@
5050
href={href ? href + $page.url.search : null}
5151
{...$$restProps}
5252
>
53-
<slot />
53+
{#if $$restProps.leadingIcon}
54+
<span class="hidden md:block"><slot /></span>
55+
{:else}
56+
<slot />
57+
{/if}
5458
</Button>

src/lib/layouts/workflow-header.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
</div>
191191
{/if}
192192
<Tabs>
193-
<TabList class="flex flex-wrap gap-6 pt-2" label="workflow detail">
193+
<TabList label="workflow detail">
194194
<Tab
195195
label={translate('workflows.history-tab')}
196196
id="history-tab"

src/lib/layouts/workflow-history-layout.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@
7676
};
7777
</script>
7878

79-
<div class="flex flex-col gap-0 px-2 pt-4 md:px-4 lg:px-8">
79+
<div class="flex flex-col gap-0 px-4 pt-4 xl:px-8">
8080
<WorkflowCallStackError />
8181
<div class="flex flex-col gap-2">
8282
<InputAndResults />
@@ -91,7 +91,7 @@
9191
{/if}
9292
</div>
9393
</div>
94-
<div class="relative px-2 pb-24 md:px-4 lg:px-8">
94+
<div class="relative px-4 pb-24 xl:px-8">
9595
<div
9696
class="flex flex-wrap items-center justify-between gap-2 bg-off-white/50 py-2 xl:gap-8 dark:bg-space-black/50"
9797
class:sticky-header={!$minimizeEventView}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
<div class="h-full px-2 pb-16 pt-4 md:px-4 lg:px-8">
1+
<div class="h-full px-4 pb-16 pt-4 xl:px-8">
22
<slot />
33
</div>

src/lib/layouts/workflow-run-layout.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
{:else if !$workflowRun.workflow}
216216
<SkeletonWorkflow />
217217
{:else}
218-
<div class="border-b border-subtle px-4 pt-8 md:pt-20 xl:px-8">
218+
<div class="px-4 pt-8 md:pt-20 xl:px-8">
219219
<WorkflowHeader />
220220
</div>
221221
<slot />

0 commit comments

Comments
 (0)