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

[HELP] Doesn't size to text #123

Closed
SoftCircuits opened this issue Apr 4, 2023 · 6 comments · Fixed by #124
Closed

[HELP] Doesn't size to text #123

SoftCircuits opened this issue Apr 4, 2023 · 6 comments · Fixed by #124
Assignees
Labels
bug Something isn't working

Comments

@SoftCircuits
Copy link

Describe the problem

My toggle labels are long than normal ("North to South" and "South to North"). And unfortunately, the labels word wrap: The control does not size itself wide enough for the text, and it sizes twice as high so that it can word wrap on secod line.

image

Even if I force it wider, it's still too tall.

image

I realize I can specify an exact width and height. But then it might not match the size of the text on some devices. The documentation says it calculates the size of the control. Is there any way to instruct the control to calculate it to put the text on a single line?

@SoftCircuits SoftCircuits added the help wanted Extra attention is needed label Apr 4, 2023
@github-actions
Copy link

github-actions bot commented Apr 4, 2023

Hi! 👋
Thanks for your issue. You are helping to improve Bootstrap 5 toggle.

@palcarazm
Copy link
Owner

Hi @SoftCircuits,

Your issue is quite strange, can you provide a minimal reproduction code or a codepen (https://codepen.io/pen/)?

Thanks 😊

@SoftCircuits
Copy link
Author

@palcarazm Looks like the issue was easy to duplicate on CodePen.

https://codepen.io/softcircuits/pen/NWOKQKv

Thanks

@palcarazm
Copy link
Owner

Thanks! I will debug and give you and answer as soon as possible.

@palcarazm palcarazm added bug Something isn't working and removed help wanted Extra attention is needed labels Apr 7, 2023
@palcarazm palcarazm self-assigned this Apr 7, 2023
palcarazm added a commit that referenced this issue Apr 7, 2023
@palcarazm
Copy link
Owner

Hi @SoftCircuits,
I have deployed the v5.0.6 that will solve the issue.

@SoftCircuits
Copy link
Author

@palcarazm Thanks. Looks good.

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
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants