jupyterlab / jupyterlab-git

A Git extension for JupyterLab
BSD 3-Clause "New" or "Revised" License
1.46k stars 319 forks source link

tab indicatory laggy when resizing GitPanel widget + horizontal resize of history overflow #593

Open ianhi opened 4 years ago

ianhi commented 4 years ago

Description

When resizing the widget the tabIndicator that shows whether changes or history is selected significantly lags behind the rest of the UI: laggy-indicator

The other issue with horizontal resizing is if there are many branches in a commit. When viewing the history some of this information is cut off and it neither wraps nor creates a horizontal scroll bar: no_scrollbar

Unfortunately I don't have solutions for these unlike the previous couple issues I raised.

kgryte commented 4 years ago

The "lagging" behavior for the tabs is due to upstream Material UI component styles. These can be overridden, but, in this case, relying on the default behavior seemed to make sense (at least to me) due to event listener throttling. In order to address it, would probably need to refactor element composition, which seems lower priority IMO.