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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropdown list shows gap when list of options is small #1962

Closed
hughess opened this issue May 2, 2024 · 0 comments
Closed

Dropdown list shows gap when list of options is small #1962

hughess opened this issue May 2, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@hughess
Copy link
Member

hughess commented May 2, 2024

Dropdown list height is fixed at 160px, leaving a gap under the options when the list is small:
CleanShot 2024-05-02 at 13 22 46@2x

This is set in this snippet in Dropdown.svelte:

<VirtualList height="160px" items={$items} let:item>
	<DropdownOption value={item.value} valueLabel={item.label} />
</VirtualList>

It may be possible to do something like:

<VirtualList height="{$items.length * 30}px" items={$items} let:item>
	<DropdownOption value={item.value} valueLabel={item.label} />
</VirtualList>
@hughess hughess added bug Something isn't working to-review Evidence team to review labels May 2, 2024
@mcrascal mcrascal removed the to-review Evidence team to review label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants