Skip to content

Commit

Permalink
Try and narrow down syntax-help width tooltip bubble
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Jul 25, 2024
1 parent e6342e0 commit a3a7db7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/css/code/syntax.css
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ code a:active .tooltip-trigger.tooltip_show .tooltip {
display: none;
}

.tooltip-trigger:has(.syntax-help) .tooltip {
.tooltip-trigger:has(> .syntax-help) .tooltip {
margin-left: -0.5rem;
}

.tooltip-trigger:has(.syntax-help) .tooltip-bubble {
.tooltip-trigger:has(> .syntax-help) .tooltip-bubble {
max-width: 22rem;
min-width: 22rem;
white-space: pre-wrap;
Expand Down

0 comments on commit a3a7db7

Please sign in to comment.