Skip to content

fix: right toolbar disappearing and sidebar overflow in editor mode#2826

Merged
abose merged 5 commits intomainfrom
ai
Apr 20, 2026
Merged

fix: right toolbar disappearing and sidebar overflow in editor mode#2826
abose merged 5 commits intomainfrom
ai

Conversation

@abose
Copy link
Copy Markdown
Member

@abose abose commented Apr 20, 2026

  • Guard Resizer drag-hide behind the collapsible flag so non-collapsible
    panels (main-toolbar, pane splitters, bottom-panel-container) cannot
    be squeezed to zero and hidden when maxsize is driven below 10px by a
    narrow window.
  • Floor main-toolbar's data("maxsize") at its minimum width in
    updateResizeLimits, so narrow-window/wide-sidebar cases cannot cap
    the toolbar below usable size.
  • Add _getSidebarWidth() using offsetWidth; jQuery outerWidth() returns
    the stale style.width on a display:none sidebar, which corrupted the
    layout math.
  • Re-clamp the plugin panel when the sidebar is shown/hidden/resized.
  • Add _ensureEditorLayoutFits(): in editor mode, coordinate sidebar,
    editor, and plugin-panel so all three share the window. Shrinks the
    sidebar after toolbar clamping if sidebar + CCB + toolbar + min
    editor exceeds the window width. No-op in design mode, which pins
    its own geometry with !important.

abose added 5 commits April 20, 2026 16:48
- Guard Resizer drag-hide behind the collapsible flag so non-collapsible
  panels (main-toolbar, pane splitters, bottom-panel-container) cannot
  be squeezed to zero and hidden when maxsize is driven below 10px by a
  narrow window.
- Floor main-toolbar's data("maxsize") at its minimum width in
  updateResizeLimits, so narrow-window/wide-sidebar cases cannot cap
  the toolbar below usable size.
- Add _getSidebarWidth() using offsetWidth; jQuery outerWidth() returns
  the stale style.width on a display:none sidebar, which corrupted the
  layout math.
- Re-clamp the plugin panel when the sidebar is shown/hidden/resized.
- Add _ensureEditorLayoutFits(): in editor mode, coordinate sidebar,
  editor, and plugin-panel so all three share the window. Shrinks the
  sidebar after toolbar clamping if sidebar + CCB + toolbar + min
  editor exceeds the window width. No-op in design mode, which pins
  its own geometry with !important.
The toggle handler hardcoded fa-feather when exiting design mode,
overwriting the pen-nib icon set in HTML.
- Inline the SVG in index.html so it renders on first paint without a
  blank-button flash.
- Switch fills/strokes to currentColor so the icon picks up the CCB
  button color and hover/active states.
- Cache the rendered SVG HTML at init; the toggle swaps it with an
  fa-code icon for design-mode state and restores the cached SVG on
  return to editor mode.
- Size the inline SVG to 15px via CSS to match neighboring FA icons.
@sonarqubecloud
Copy link
Copy Markdown

@abose abose merged commit 7b4288c into main Apr 20, 2026
14 of 21 checks passed
@abose abose deleted the ai branch April 20, 2026 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant