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

[Bug]: Text in the Select component is not left-aligned when it overflows. #719

Closed
1 of 2 tasks
elio2t opened this issue Aug 19, 2024 · 0 comments · Fixed by #726
Closed
1 of 2 tasks

[Bug]: Text in the Select component is not left-aligned when it overflows. #719

elio2t opened this issue Aug 19, 2024 · 0 comments · Fixed by #726
Assignees
Labels
bug Something isn't working

Comments

@elio2t
Copy link

elio2t commented Aug 19, 2024

Reproduction

https://stackblitz.com/edit/uogwrz?file=src%2FApp.vue

Describe the bug

When the text of the selected item in the Select component overflows, it is not left-aligned.
I placed a select without overflow next to it for comparison:

Screenshot 2024-08-19 at 14 41 18

I was able to fix the issue by adding the Tailwind class [&>span]:text-left to the SelectTrigger component.
I also noticed that the chevron icon on the right of the select changes size but I haven’t found the cause of the issue.

System Info

System:
    OS: macOS 14.6.1
    CPU: (8) arm64 Apple M2
    Memory: 64.73 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.15.1 - /opt/homebrew/opt/node@20/bin/node
    npm: 10.7.0 - /opt/homebrew/opt/node@20/bin/npm
    pnpm: 9.6.0 - ~/Library/pnpm/pnpm
  Browsers:
    Chrome: 127.0.6533.120
    Safari: 17.6
  npmPackages:
    @vueuse/core: ^10.11.0 => 10.11.0 
    radix-vue: ^1.9.2 => 1.9.2 
    vue: ^3.4.29 => 3.4.34

Contributes

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests
@elio2t elio2t added the bug Something isn't working label Aug 19, 2024
@hrynevychroman hrynevychroman self-assigned this Aug 22, 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

Successfully merging a pull request may close this issue.

2 participants