Skip to content

fix: restore icons missed when dropping PNG sprite support#67

Merged
moodyjmz merged 8 commits into
mainfrom
fix/missing-right-panel-icons
May 27, 2026
Merged

fix: restore icons missed when dropping PNG sprite support#67
moodyjmz merged 8 commits into
mainfrom
fix/missing-right-panel-icons

Conversation

@moodyjmz
Copy link
Copy Markdown
Member

Fixes #65

<i class="toolbar__icon btn-xxx"> elements in several templates had no CSS backing after the PNG spritesheets were removed. Replaces them with <svg><use href="#btn-xxx"> (the approach used everywhere else) in the places that were missed:

  • RightMenu — documenteditor, presentationeditor, spreadsheeteditor, pdfeditor
  • StatusBar — all 5 editors
  • CellEditor — spreadsheeteditor

moodyjmz and others added 2 commits May 27, 2026 11:48
After the PNG sprite removal, `<i class="toolbar__icon btn-xxx">` elements
in RightMenu, StatusBar, and CellEditor templates had no CSS backing them.
The Button component only generates SVG icons when rendering fresh HTML via
parentEl; when setElement+render is used (as these views all do), the
existing template markup is kept as-is.

Replace all affected `<i>` elements with `<svg class="icon uni-scale"><use
href="#btn-xxx"></use></svg>` to match the SVG sprite approach now used
everywhere else.

Fixes #65

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
ListView item templates in Animation.js and AnimationDialog.js were
rendering animation icons as bare <div class="toolbar__icon animation-*">
elements, which lost their styles when the PNG spritesheets were removed.
Replace with <svg><use href="#..."> to match the SVG sprite approach.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz self-assigned this May 27, 2026
moodyjmz and others added 6 commits May 27, 2026 12:17
<div class="toolbar__icon btn-xxx"> had no CSS backing after PNG sprite
removal. Wrap an SVG sprite reference inside the existing div.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Dynamically created <div class="toolbar__icon btn-xxx"> elements had no
CSS backing. Embed SVG sprite reference inside the div wrapper.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Inline <i> elements in the preview controls template had no CSS backing.
Replace with SVG sprite references.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Inline <i>/<span> elements with toolbar__icon classes had no CSS backing.
Replace with SVG sprite references in LanguageDialog, ShortcutsDialog,
and ShortcutsEditDialog.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Inline <i> elements in the document editor StatusBar language menu and
the spreadsheet AutoFilter tree view had no CSS backing. Replace with
SVG sprite references.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
Missed in previous commit due to filename case (Statusbar.js). Replace
the inline <i> icon with an SVG sprite reference.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Signed-off-by: James Manuel <moodyjmz@users.noreply.github.com>
@moodyjmz moodyjmz marked this pull request as draft May 27, 2026 10:24
@moodyjmz moodyjmz marked this pull request as ready for review May 27, 2026 10:41
@moodyjmz moodyjmz merged commit 64e9f5d into main May 27, 2026
1 check passed
@moodyjmz moodyjmz linked an issue May 28, 2026 that may be closed by this pull request
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.

Bug: Missing icons for buttons in the right panel bug: status bar icons don't show in spreadsheet

2 participants