Skip to content

Commit

Permalink
Merge pull request #668 from danskernesdigitalebibliotek/feature/find…
Browse files Browse the repository at this point in the history
…-on-shelf-changes

Feature/find on shelf changes
  • Loading branch information
Adamik10 authored Sep 9, 2024
2 parents 5250699 + c0fa584 commit b737f92
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ const ListFindOnShelf: React.FC<ListFindOnShelfProps> = ({
<ul className="find-on-shelf">
<li className="find-on-shelf__header-row text-small-caption">
<span className="find-on-shelf__material-header">Materiale</span>
<span>Find det på hylden</span>
<span className="find-on-shelf__location-header">
Find det på hylden
</span>
<span className="find-on-shelf__item-count-header">Hjemme</span>
</li>
{numberArray.map((key) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
width: 404px;
}

&__location-header {
white-space: nowrap;
padding-right: $s-lg;
}

&__item-count-header {
@include media-query__small {
margin-left: auto;
Expand All @@ -42,9 +47,7 @@
max-width: 600px;

@include media-query__small {
// Both width and min-width need to be here to prevent flex shrink & stretch.
width: 404px;
min-width: 404px;
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/Library/dropdown/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const DropdownElement: React.FC<DropdownElementProps> = ({
<select className={classes.select} aria-label={ariaLabel}>
{list.map(({ title, disabled }, index) => (
<option
key={index}
key={index + title}
className={classes.option}
value={title}
disabled={disabled !== undefined ? disabled : false}
Expand Down

0 comments on commit b737f92

Please sign in to comment.