fix: Monaco find widget toggle button positioning (#6683)
The generic `.button` height override was collapsing the expand/collapse chevron to 20px, pinning it to the top instead of centering it vertically. Switch to targeting `.button.toggle` and restore `height: 100%` so Monaco's own layout centers the chevron over the find row.
This commit is contained in:
@@ -1814,10 +1814,15 @@
|
||||
transition: none !important;
|
||||
}
|
||||
|
||||
/* Specifically for the expand/collapse button icon which is often a nested 'i' or '::before' */
|
||||
.monaco-editor .find-widget .button.expand {
|
||||
width: 16px !important;
|
||||
height: 16px !important;
|
||||
/* Why: the expand/collapse toggle (the chevron on the far left) is positioned
|
||||
absolutely and relies on Monaco's default height:100% to vertically center
|
||||
its icon over the find row. The generic .button override above forces a fixed
|
||||
20px height, which pins the chevron to the top. Restore Monaco's full-height
|
||||
18px toggle so the chevron centers like the stock find widget. */
|
||||
.monaco-editor .find-widget .button.toggle {
|
||||
width: 18px !important;
|
||||
height: 100% !important;
|
||||
top: 0 !important;
|
||||
}
|
||||
|
||||
.monaco-editor .find-widget .button > .codicon,
|
||||
|
||||
Reference in New Issue
Block a user