Skip to content

Commit

Permalink
fix: use consistent width for jump to box
Browse files Browse the repository at this point in the history
  • Loading branch information
fspoettel committed Jun 17, 2024
1 parent ffbcae0 commit be0c08c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/card-list/card-list-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ export function CardListNav({ data, metadata, onSelectGroup }: Props) {
<output>{data?.cards.length ?? 0} cards</output>
{data && (
<Select
className={css["nav-jump"]}
emptyLabel="Jump to..."
onChange={onSelectGroup}
options={jumpToOptions ?? []}
Expand Down
4 changes: 4 additions & 0 deletions src/components/card-list/card-list.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
}
}

.nav-jump {
width: min(12rem, 33.333%);
}

.scroller {
flex: 1 1 auto;
border-top: 1px solid transparent;
Expand Down

0 comments on commit be0c08c

Please sign in to comment.