diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index 573469968..b03fe076e 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -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,