Skip to content

JetBrains: make search input responsive

Created by: taras-yemets

Closes https://github.com/sourcegraph/sourcegraph/issues/35545

.monaco-editor and a lot of its ancestors recalculate their height on resizing. For some reason, height recalculation doesn't happen when the editor's container no longer fits in the page width and starts shrinking. The suggested weird hack (setting editors width to 0) triggers height recalculation even if there's not enough width for the editor's container.

Loom

Test plan

Run the JetBrains plugin in standalone mode and try to resize the window. The search input should remain responsive (check the Loom from the description).

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading