Skip to content

Commit 8e10afc

Browse files
Improve: UI/UX details in template builds (#201)
<!-- CURSOR_SUMMARY --> > [!NOTE] > Polishes the builds table UI by updating the loading indicator, adjusting alignment, and improving responsive overflow and column sizing. > > - **UI/UX tweaks for builds table** > - `LoadMoreButton`: switches to "Loading" with `Loader variant="dots"`, uses `inline-flex` with tighter spacing. > - `Reason`: removes `prose-table` from `className` to simplify styling. > - **Responsive/layout adjustments**: > - Scroll container `overflow-x-hidden` moves from `md` to `lg`. > - Last `col` gains `max-lg:min-w-[500px]` to ensure readable width on smaller screens. > - "Back to top" and "Load more" rows are `text-center` on large screens and `max-lg:text-start` on smaller screens. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit f8d5fa6. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent 1af3013 commit 8e10afc

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/features/dashboard/templates/builds/table-cells.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ export function LoadMoreButton({
9898
}) {
9999
if (isLoading) {
100100
return (
101-
<span className="flex items-center gap-2">
102-
<Loader variant="slash" size="sm" />
103-
Loading...
101+
<span className="inline-flex items-center gap-1">
102+
Loading
103+
<Loader variant="dots" />
104104
</span>
105105
)
106106
}
@@ -234,7 +234,7 @@ export function Reason({
234234
return (
235235
<CopyableCell
236236
value={statusMessage}
237-
className="prose-table truncate max-w-0 min-w-full text-left"
237+
className="truncate max-w-0 min-w-full text-left"
238238
>
239239
{statusMessage}
240240
</CopyableCell>

src/features/dashboard/templates/builds/table.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ const BuildsTable = () => {
158158
<div className="flex h-full min-h-0 flex-col overflow-hidden relative">
159159
<div
160160
ref={scrollContainerRef}
161-
className="min-h-0 flex-1 overflow-y-auto overflow-x-auto md:overflow-x-hidden"
161+
className="min-h-0 flex-1 overflow-y-auto overflow-x-auto lg:overflow-x-hidden"
162162
>
163163
<Table suppressHydrationWarning>
164164
<colgroup>
@@ -167,7 +167,7 @@ const BuildsTable = () => {
167167
<col style={colStyle(COLUMN_WIDTHS.template)} />
168168
<col style={colStyle(COLUMN_WIDTHS.started)} />
169169
<col style={colStyle(COLUMN_WIDTHS.duration)} />
170-
<col />
170+
<col className="max-lg:min-w-[500px]" />
171171
</colgroup>
172172

173173
<TableHeader className="sticky top-0 z-10 bg-bg">
@@ -215,7 +215,7 @@ const BuildsTable = () => {
215215
<TableRow>
216216
<TableCell
217217
colSpan={6}
218-
className="text-start text-fg-tertiary"
218+
className="text-center max-lg:text-start text-fg-tertiary"
219219
>
220220
<BackToTopButton onBackToTop={handleBackToTop} />
221221
</TableCell>
@@ -272,7 +272,7 @@ const BuildsTable = () => {
272272
<TableRow>
273273
<TableCell
274274
colSpan={6}
275-
className="text-start text-fg-tertiary"
275+
className="text-center max-lg:text-start text-fg-tertiary"
276276
>
277277
<LoadMoreButton
278278
isLoading={isFetchingNextPage}

0 commit comments

Comments
 (0)