Skip to content

fix: correct animation panel icon sizing in presentation editor#69

Merged
moodyjmz merged 1 commit into
mainfrom
fix/presentation-click-offset
May 27, 2026
Merged

fix: correct animation panel icon sizing in presentation editor#69
moodyjmz merged 1 commit into
mainfrom
fix/presentation-click-offset

Conversation

@moodyjmz
Copy link
Copy Markdown
Member

SVG icons in the animation effect picker were rendering at 300px wide (browser default) because the .icon:not(svg) CSS rule explicitly excludes SVG elements from the icon size constraint, and the icon uni-scale class has no dimensions of its own.

Replace with explicit width="28" height="28" matching the 28x28 viewBox. This also avoids fill:currentColor overriding the icons' explicit fill colours.

SVG icons in the animation effect picker were rendering at 300px wide
(browser default) because the .icon:not(svg) CSS rule explicitly
excludes SVG elements from the icon size constraint, and the icon
uni-scale class has no dimensions of its own.

Replace with explicit width="28" height="28" matching the 28x28
viewBox. This also avoids fill:currentColor overriding the icons'
explicit fill colours.

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 moodyjmz marked this pull request as draft May 27, 2026 12:52
Copy link
Copy Markdown
Contributor

@chrip chrip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix—this is a clean, targeted change and the PR description clearly explains the root cause.

Minor side note: the branch name fix/presentation-click-offset doesn't quite match the content, but that's trivial.

LGTM. The explicit width/height on the <svg> elements is the right approach and avoids the CSS selector gap (:not(svg)) that was causing the 300px overflow. Approved.

Copy link
Copy Markdown
Contributor

@chrip chrip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix—this is a clean, targeted change and the PR description clearly explains the root cause.

Minor side note: the branch name fix/presentation-click-offset doesn't quite match the content, but that's trivial.

LGTM. The explicit width/height on the <svg> elements is the right approach and avoids the CSS selector gap (:not(svg)) that was causing the 300px overflow. Approved.

@moodyjmz moodyjmz marked this pull request as ready for review May 27, 2026 13:17
@moodyjmz moodyjmz merged commit aad5886 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: status bar icons don't show in spreadsheet

2 participants