style(columns): the picker lists each group alphabetically
The catalog's order is the grid's column order, which appends new columns at the end — so the two ClubLog rows sat at opposite ends of the Uploads box. Sorted for display only; the grid keeps its own order.
This commit is contained in:
@@ -786,7 +786,11 @@ export function RecentQSOsGrid({ rows, myGrid, selectAllSignal, selectRowSignal,
|
||||
</div>
|
||||
<div className="grid grid-cols-3 gap-4 max-h-[60vh] overflow-y-auto px-5 py-3">
|
||||
{GROUP_ORDER.map((group) => {
|
||||
const cols = COL_CATALOG.filter((c) => c.group === group);
|
||||
// Alphabetical within the group: the catalog's order is the
|
||||
// GRID's column order, which appends newcomers at the end — so
|
||||
// the two ClubLog rows sat at opposite ends of the Uploads box.
|
||||
const cols = COL_CATALOG.filter((c) => c.group === group)
|
||||
.slice().sort((a, b) => (a.label ?? '').localeCompare(b.label ?? ''));
|
||||
if (cols.length === 0) return null;
|
||||
return (
|
||||
<div key={group} className="rounded-md border border-border p-2.5">
|
||||
|
||||
Reference in New Issue
Block a user