You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Source editor toolbar pushes buttons past its right edge at some pane widths #19896
As the Source pane is made narrower, the editor toolbar is supposed to give up width in stages: hide some buttons, then drop some labels. At several widths it hides too little, and the rightmost buttons are pushed past the toolbar's right edge, partly or entirely out of sight.
Steps
Open a Quarto document (.qmd) or R Markdown document (.Rmd) in Source mode, in a Git project, with the Source pane wide enough that every toolbar button shows.
Drag the pane's edge to make it narrower.
What happens
Below about 747px the last button, "Toggle the second view of this document", starts to be cut off, then "Show Changes Side by Side" with it. Both are out of sight by about 660px.
At about 660px "Go to previous section/chunk" and "Go to next section/chunk" hide. "Show Changes Side by Side" comes back, but "Toggle the second view" stays cut off.
Below about 609px both are pushed out again, followed by "Publish options".
When Render (or Knit) drops its label, "Publish options" comes back, but the other two stay out of sight.
In Visual mode, which has neither of those two buttons, part of "Publish options" is still cut off below a certain width. An R script's toolbar does the same in narrower bands; for example, "Show document outline" is cut off at about 510px.
Cause
The toolbar hides its buttons and labels at fixed pane widths. Those widths no longer match what the toolbar holds: the split editor and diff toggle buttons were added since they were set, toolbar buttons were enlarged to 24px targets, and what a toolbar holds varies with the document and the UI language.
Expected
At any width, as long as there is something left to hide, no toolbar control is cut off at the right edge, and widening the pane brings back what was hidden.
Activity
Fit the source editor toolbar to its width by measuring (#19897)