Skip to content

UI improvements#2836

Merged
abose merged 6 commits intomainfrom
ai
Apr 23, 2026
Merged

UI improvements#2836
abose merged 6 commits intomainfrom
ai

Conversation

@abose
Copy link
Copy Markdown
Member

@abose abose commented Apr 23, 2026

No description provided.

abose added 6 commits April 23, 2026 07:22
Follow-up to 1b3e6ce: the design-mode toggle no longer swaps the
pen-nib SVG for fa-code — only the title changes between
CCB_SWITCH_TO_DESIGN_MODE and CCB_SWITCH_TO_CODE_EDITOR. Rewrite the
existing icon-swap test to match the new behavior: still assert the
title flips and that the button's is-active wiring works, but check
that the SVG stays in both states instead of expecting an fa-code
icon in design mode.
The hamburger menu's dropdown was anchored with `right: 0; left: auto`,
which aligned its right edge with the toggle's right edge and made it
extend leftward. In the narrow-titlebar layout that shows the hamburger
the dropdown would spill over the central control bar, overlapping the
editor / design-mode buttons.

Flip to `left: 0; right: auto` so the dropdown's left edge aligns with
the toggle and opens into the empty titlebar area on the right.
Submenu arrows already point right (►), so submenu cascade direction is
unchanged.
The CCB design-mode toggle had no visible active state beyond a title
change, so it wasn't obvious the button was "on" without reading the
tooltip. Add a subtle lighter background (rgba(255,255,255,0.12)) on
.is-active to make the button read as a pressed toolbar chip, and
bump the icon color one step brighter. No accent color — keeps the
CCB's neutral palette intact.
…lbar

- Replace the sprite-backed reload button with fa-arrow-rotate-right so
  it matches the weight of the other FA buttons in the toolbar.
- Add #designModeToggleLivePreviewButton between reload and preview-mode
  that dispatches VIEW_TOGGLE_DESIGN_MODE, letting the user enter/exit
  design mode from the live-preview panel itself without reaching to
  the CCB. Icon swaps fa-expand ↔ fa-compress based on the current
  design-mode state, title swaps between CCB_SWITCH_TO_DESIGN_MODE and
  CCB_SWITCH_TO_CODE_EDITOR.
- Hide #livePreviewModeBtn (the preview-mode dropdown) while in design
  mode — its options aren't meaningful when the editor is collapsed.
Replace the sprite-icon `leftArrow` / `rightArrow` / `leftArrowDisabled`
/ `rightArrowDisabled` bitmaps with fa-arrow-left / fa-arrow-right FA
icons, matching the weight of the adjacent FA-based sidebar and
toolbar buttons (binoculars, search, design-mode toggle) and giving
the back/forward pair a browser-style affordance.

NavigationProvider still toggles `.nav-back-btn` ↔ `.nav-back-btn-disabled`
(and the forward pair) to signal enabled state. The CSS is rewritten as
a single icon-button block with a .disabled opacity fork instead of
four separate sprite rules.
@sonarqubecloud
Copy link
Copy Markdown

@abose abose merged commit d2c14ce into main Apr 23, 2026
15 of 21 checks passed
@abose abose deleted the ai branch April 23, 2026 09:40
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