Skip to content

Commit d37984d

Browse files
committed
better responsive columns
1 parent 570ac7c commit d37984d

File tree

1 file changed

+17
-12
lines changed

1 file changed

+17
-12
lines changed

frontend/src/features/crawls/crawl-list/crawl-list.ts

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -61,20 +61,23 @@ export class CrawlList extends TailwindElement {
6161
render() {
6262
const columns = [
6363
"min-content [clickable-start]",
64-
this.workflowId ? undefined : "36ch", // Name
65-
"22ch", // Started
66-
"22ch", // Finished
67-
"auto", // Execution time
68-
"auto", // Pages
69-
"auto", // Size
70-
"[clickable-end] 20ch", // Run by
64+
this.workflowId ? undefined : "minmax(22ch, 36ch)", // Name
65+
"minmax(min-content, 22ch)", // Started
66+
"minmax(min-content, 22ch)", // Finished
67+
"1fr", // Execution time
68+
"1fr", // Pages
69+
"1fr", // Size
70+
"[clickable-end] minmax(max-content, 20ch)", // Run by
7171
"min-content",
7272
]
7373
.filter((v) => v)
7474
.join(" ");
7575

7676
return html` <btrix-overflow-scroll class="-mx-3 part-[content]:px-3">
77-
<btrix-table style="--btrix-table-grid-template-columns: ${columns}">
77+
<btrix-table
78+
style="--btrix-table-grid-template-columns: ${columns}"
79+
class="whitespace-nowrap"
80+
>
7881
<btrix-table-head class="mb-2">
7982
<btrix-table-header-cell class="pr-0">
8083
<span class="sr-only">${msg("Status")}</span>
@@ -86,12 +89,14 @@ export class CrawlList extends TailwindElement {
8689
${msg("Name")}
8790
</btrix-table-header-cell>
8891
`}
89-
<btrix-table-header-cell> ${msg("Started")} </btrix-table-header-cell>
9092
<btrix-table-header-cell>
91-
${msg("Finished")}
93+
${msg("Date Started")}
9294
</btrix-table-header-cell>
93-
<btrix-table-header-cell
94-
>${msg("Execution Time")}</btrix-table-header-cell
95+
<btrix-table-header-cell>
96+
${msg("Date Finished")}
97+
</btrix-table-header-cell>
98+
<btrix-table-header-cell title=${msg("Execution Time")}
99+
>${msg("Exec Time")}</btrix-table-header-cell
95100
>
96101
<btrix-table-header-cell>${msg("Pages")}</btrix-table-header-cell>
97102
<btrix-table-header-cell>${msg("Size")}</btrix-table-header-cell>

0 commit comments

Comments
 (0)