mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user