Files
overleaf-cep/services/web/frontend/stylesheets/components/tooltip.scss
Antoine Clausse f8235e67e6 Merge pull request #32698 from overleaf/ii-tooltip-flicker
[web] Fix tooltip flickering

GitOrigin-RevId: 5a0756fb27671dbfa480a0d15d7fbb937aaebf47
2026-04-14 08:05:08 +00:00

36 lines
596 B
SCSS

.tooltip {
line-height: 20px;
@include shadow-md;
&.#{$prefix}tooltip-top {
bottom: -1px !important;
}
&.#{$prefix}tooltip-end {
top: 1px !important;
left: -1px !important;
}
&.#{$prefix}tooltip-bottom {
top: -1px !important;
}
&.#{$prefix}tooltip-start {
top: 1px !important;
right: -1px !important;
}
&:not([data-popper-placement]) {
// Prevents flickering
position: absolute !important;
inset: 0 auto auto 0 !important;
opacity: 0;
}
}
.tooltip-inner {
text-align: initial;
.tooltip-wide & {
max-width: unset;
}
}