Skip to content

Commit 994748c

Browse files
authored
Table Row density (#2668)
* Less padded tables * Better width on buttons in row * Make mobile height taller * Make table header cell less wide
1 parent f2341af commit 994748c

File tree

6 files changed

+11
-8
lines changed

6 files changed

+11
-8
lines changed

playwright.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default defineConfig({
4444
testIgnore: /.*desktop.spec.ts/,
4545
use: {
4646
...devices['Desktop Chrome'],
47-
viewport: { width: 320, height: 480 },
47+
viewport: { width: 320, height: 800 },
4848
isMobile: true,
4949
},
5050
},

src/lib/components/workflow-status.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
</script>
8080

8181
<div
82-
class="relative flex items-center gap-0 text-center text-sm leading-4"
82+
class="relative flex items-center gap-0 text-center text-xs leading-4"
8383
data-testid={$$props['test-id']}
8484
>
8585
<span

src/lib/components/workflow/workflows-summary-configurable-table/table-body-cell.svelte

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

145145
<style lang="postcss">
146146
.workflows-summary-table-body-cell {
147-
@apply h-10 whitespace-nowrap;
147+
@apply h-8 whitespace-nowrap;
148148
149149
&.filterable {
150150
@apply relative pr-24;

src/lib/components/workflow/workflows-summary-configurable-table/table-header-row.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
/>
4949
</th>
5050
{/if}
51-
<th class="w-12"></th>
51+
<th class="w-6"></th>
5252
{#if $supportsBulkActions && $batchActionsVisible}
5353
<th class="batch-actions-table-cell" colspan={columnsCount}>
5454
<BatchActions {workflows} />

src/lib/components/workflow/workflows-summary-configurable-table/table-row.svelte

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@
5656
/>
5757
</td>
5858
<td
59-
class="cursor-point relative flex items-center justify-center gap-0.5 pt-2"
59+
class="cursor-point relative flex items-center justify-center gap-0.5 py-0.5 {$hideChildWorkflows &&
60+
!child
61+
? 'w-auto'
62+
: 'w-6'}"
6063
>
6164
{#if !workflowCreateDisabled($page)}
6265
<StartWorkflowButton

src/lib/holocene/table/paginated-table/index.svelte

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
}
7575
7676
:global(tr > th) {
77-
@apply whitespace-nowrap p-2 text-left font-medium;
77+
@apply whitespace-nowrap px-2 text-left font-medium;
7878
}
7979
}
8080
@@ -104,7 +104,7 @@
104104
}
105105
106106
:global(tr > td) {
107-
@apply whitespace-nowrap p-2;
107+
@apply whitespace-nowrap px-2;
108108
}
109109
110110
:global(tr > td > .table-link) {
@@ -114,7 +114,7 @@
114114
115115
.primary .paginated-table-body {
116116
:global(tr:not(.empty)) {
117-
@apply h-12 border-b border-table last-of-type:border-0 hover:bg-interactive-table-hover hover:bg-fixed;
117+
@apply h-8 border-b border-table last-of-type:border-0 hover:bg-interactive-table-hover hover:bg-fixed;
118118
}
119119
}
120120

0 commit comments

Comments
 (0)