JetBrains: Monaco editor does not shrink when context gets longer
Created by: philipp-spiess
When we change the context dropdown to a larger string, the icons on the side of the editor gets pushed outside of the viewport. Strangely enough the selecting a smaller string will properly re-layout the editor.
This behavior works on sourcegraph.com so it must be something with our own flex rules but I can't easily figure out what it is so I’m postponing this with an issue :(
https://user-images.githubusercontent.com/458591/173578660-f819bbd4-4fb5-4d84-90fb-160bb86423dc.mov
There's special logic in Monaco to re-layout the editor when the container element changes dimensions. This callback is run in our case yet the width does not properly calculate.