Skip to content

Commit cdc91c4

Browse files
committed
app: Make action column sticky on search results table
The ellipsis menu was hidden when the table exceeded viewport width. Adding sticky positioning keeps the action column visible at the right edge regardless of horizontal scroll position.
1 parent ce79389 commit cdc91c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/app/search/components/statistical-unit-table-header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ export function StatisticalUnitTableHeader({
239239
);
240240
}
241241
})}
242-
<TableHead />
242+
<TableHead className="sticky right-0 bg-gray-50" />
243243
</TableRow>
244244
</TableHeader>
245245
);

app/src/app/search/components/statistical-unit-table-row.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export const StatisticalUnitTableRow = ({
524524
);
525525
}
526526
})}
527-
<TableCell key="column-action" className="py-2 p-1 text-right">
527+
<TableCell key="column-action" className="py-2 p-1 text-right sticky right-0 bg-white">
528528
<SearchResultTableRowDropdownMenu unit={unit} />
529529
</TableCell>
530530
</TableRow>

0 commit comments

Comments
 (0)