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

tooltip - detect page width #1739

Closed
drma-tech opened this issue Jan 21, 2021 · 6 comments
Closed

tooltip - detect page width #1739

drma-tech opened this issue Jan 21, 2021 · 6 comments
Labels
Type: Bug 🐞 Something isn't working
Milestone

Comments

@drma-tech
Copy link

Is there a way to detect the page boundaries and show the tooltip completely?

image

@stsrki
Copy link
Collaborator

stsrki commented Jan 22, 2021

Probably yes, but it's a complex component so I will need to investigate it more.

With quick inspections I modified this and it seems to work:

[data-tooltip]:not(.is-loading)::before, [data-tooltip]:not(.is-disabled)::before, [data-tooltip]:not([disabled])::before
{
  left: 100%;
}

You can now proceed from here and add custom media breakpoints.

@drma-tech
Copy link
Author

It didn't work or I don't think I understood.

My knowledge of CSS is not advanced.

@drma-tech
Copy link
Author

@stsrki

@stsrki
Copy link
Collaborator

stsrki commented Feb 6, 2021

It didn't work or I don't think I understood.

My knowledge of CSS is not advanced.

Just copy paste the css code from above into your site.css and it should work.

@drma-tech
Copy link
Author

Yes, I did that part, but it doesn't work alone.

I was referring to the second thing you mentioned: custom media breakpoints

@drma-tech
Copy link
Author

[data-tooltip]:not(.is-loading).b-tooltip-fade::before, [data-tooltip]:not(.is-loading).b-tooltip-fade::after, [data-tooltip]:not(.is-disabled).b-tooltip-fade::before, [data-tooltip]:not(.is-disabled).b-tooltip-fade::after, [data-tooltip]:not([disabled]).b-tooltip-fade::before, [data-tooltip]:not([disabled]).b-tooltip-fade::after {
    left: 100% !important;
}

I think I understand. My code was different.

But how to solve this when the component is on the right side. I tried with right: 100%, but it didn't work.
image

@stsrki stsrki added the Type: Bug 🐞 Something isn't working label Mar 26, 2021
@stsrki stsrki added this to the 0.9.4 milestone Mar 26, 2021
@stsrki stsrki mentioned this issue Mar 31, 2021
@stsrki stsrki closed this as completed Mar 31, 2021
@stsrki stsrki moved this to ✔ Done in Development Jul 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug 🐞 Something isn't working
Projects
Archived in project
Development

No branches or pull requests

2 participants