Skip to content

Can't force svelte-multiselect box to not grow #255

Open
@paul-brenner

Description

@paul-brenner

Perhaps just me not understanding something fundamental. But I am yet to find a way to force a svelte-multiselect box to stay a fixed size. I see in examples like https://awesome-sveltekit.janosh.dev/ that e.g. selecting options for "Filter by tag" just causes that box to grow in both width and height which pushes the rest of the page around. Am I missing a way to not let that happen?

I'm not 100% sure what should happen instead. I was trying to think if there is some way to just abbreviate the selected options when they take up too much space. e.g. if I selected "blog" and "animations" and there wasn't enough space for both then animations would become "anim..." or just "anim".

But I also see that just selecting "blog" causes the select box to get wider even though there is plenty of empty space and I'm not sure what is driving that or if I can force it to stop.

I should also say upfront that I'm a daisyUI/Tailwindcss user so if there is an existing option I would be trying to figure out how to convert it to work with Tailwind.

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussionGathering feedback on open questionsdxDeveloper experiencestyleAnything CSS related

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions