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

How to set dynamic width? #324

Open
sinneren opened this issue Jan 14, 2025 · 3 comments
Open

How to set dynamic width? #324

sinneren opened this issue Jan 14, 2025 · 3 comments

Comments

@sinneren
Copy link

As default max-width only number and 350px.
I need tooltip width as wrapper width (by css).
How can I set it?

I use inline-positioning, but it still as content width.

@KABBOUCHI
Copy link
Owner

try to set maxWidth to none and apply your custom css on .tippy-box class if needed?

https://vue-tippy.netlify.app/props#maxwidth
https://vue-tippy.netlify.app/themes

@sinneren
Copy link
Author

Nope, tippy box is absolute element and max-width dosen't work.
I mean, maybe tippy can calculate itself?
Cause I have just only one programmatic solution:
set ref to wrapper, calculate in it width of ref and set it to max-width property.

@KABBOUCHI
Copy link
Owner

plz replicate the issue using https://vue.new/ so i can help u better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants