-
Notifications
You must be signed in to change notification settings - Fork 373
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]: Some components need whitespace-nowrap #199
Comments
I think |
Agree about that layout shift. I looked into shadcn, looks like thay had the same problem and fixed it on Oct 21 by adding If we're gonna fix this, should button.json be fixed too? |
looked into
has PR welcomed if you have time 🙏 If you start doing it please refactor the button to use |
@sadeghbarati I'm agree with you to use ![]() |
Ow man you right 😭, but how Svelte example support complex types? export type VariantProps<Component extends (...args: any) => any> = Omit<OmitUndefined<Parameters<Component>[0]>, "class" | "className">; Looks like we have to use it this way before complex types support https://github.com/joe-bell/cva/blob/main/examples/vue/src/components/Button.vue |
Started working on this 🙂 |
@sadeghbarati Hello 👋 Have one question about it, I don't think that it is great to use ![]() So my solution is to change Select from ![]() |
Please Assign me for this Issue, I already change Button with refactor |
One more question, sorry, I need to make PR when everything will be fixed, or better do it now and push new commits? Working Branch: https://github.com/romanhrynevych/shadcn-vue/tree/199-bug-whitespace-nowrap |
It's up to you, PR Title is important of course, individual commit messages are important but not as much as the first commit and PR Title |
Environment
Link to minimal reproduction
https://www.shadcn-vue.com/themes
Steps to reproduce
xl
ormd
screen size"Copy code"
being wrappedDescribe the bug
Title having spaces may be wrapped because of missing
whitespace-nowrap
class.In shadcn, following (new-york) components have
whitespace-nowrap
:Meanwhile, in shadcn-vue only these:
Expected behavior
No wrap
Conext & Screenshots (if applicable)
No response
The text was updated successfully, but these errors were encountered: