Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nowrap to button, add scrollbar to searchbox #203

Merged
merged 1 commit into from
Sep 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion src/menu/DatasetSearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,16 @@ export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsName
DropdownIndicator: addDataTestId(dropdownIndicator, 'async-paginate-dropdownindicator'),
}}
styles={{
indicatorsContainer: (styles) => ({
...styles,
maxHeight: '70px',
alignSelf: 'flex-end',
}),
valueContainer: (styles) => ({
...styles,
maxHeight: '125px', // show 4 rows of values
overflow: 'auto',
}),
multiValue: (styles, { data }) => ({
...styles,
border: `1px solid #CCC`,
Expand Down Expand Up @@ -209,7 +219,7 @@ export function DatasetSearchBox({ placeholder, dataSource, onOpen, onSaveAsName
</button>
<button
type="button"
className="btn btn-outline-secondary"
className="btn btn-outline-secondary text-nowrap"
data-testid="save-button"
disabled={!validItems?.length}
onClick={() => onSaveAsNamedSet(validItems)}
Expand Down