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

limit width of tooltip for product KB metadata #6032

Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
limit width of product kb metadata tooltip
  • Loading branch information
escattone committed May 29, 2024
commit 944b321c221cacbb1d26e7e2a70051f3f2efe12b
21 changes: 21 additions & 0 deletions kitsune/sumo/static/sumo/scss/base/_utilities.scss
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
.tooltip-container {
position: relative;
display: flex;
flex-wrap: wrap;
align-items: center;
}

Expand All @@ -130,6 +131,26 @@
position: absolute;
width: max-content;
visibility: hidden;

@media #{p.$mq-xs} {
max-width: p.$content-xs;
}

@media #{p.$mq-sm} {
max-width: p.$content-sm;
}

@media #{p.$mq-md} {
max-width: p.$content-md;
}

@media #{p.$mq-lg} {
max-width: p.$content-lg;
}

@media #{p.$mq-xl} {
max-width: p.$content-xl;
}
}

.tooltip-container:hover .tooltip {
Expand Down