Skip to content

Commit

Permalink
Merge pull request #6032 from escattone/limit-width-of-product-metada…
Browse files Browse the repository at this point in the history
…ta-tooltip-for-kb-articles-1810

limit width of tooltip for product KB metadata
  • Loading branch information
akatsoulas committed May 30, 2024
2 parents 30d2940 + 944b321 commit a185499
Showing 1 changed file with 21 additions and 0 deletions.
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

0 comments on commit a185499

Please sign in to comment.