hotkey-hint: Fix text not middle aligned at different zoom levels.

* Remove `box-sizing` and `min-width` properties which have no
  effect on `inline` positioned element. Modified class selector to
  add `span` which reflects this while reading the CSS.

* Remove `2px` vertical padding and `line-height` which combined
  are fighting for space??
This commit is contained in:
Aman Agrawal
2023-05-31 11:43:33 +05:30
committed by Tim Abbott
parent 3c60e538f9
commit 634a771a37

View File

@@ -77,15 +77,12 @@
gap: 4px;
}
.tooltip-hotkey-hint {
box-sizing: inherit;
& span.tooltip-hotkey-hint {
border: 1px solid hsl(225deg 100% 84%);
border-radius: 3px;
color: hsl(225deg 100% 84%);
padding: 2px 5px;
min-width: 20px;
padding: 0 5px;
text-align: center;
line-height: 14px;
}
/* If the reference of the tooltip is went offscreen while scrolling,