Skip to content

Fix dropdown menus spawning offset in scrolled panels, a regression from upgrading to Svelte 5.54#4047

Merged
Keavon merged 4 commits intomasterfrom
fix-dropdown-offset
Apr 24, 2026
Merged

Fix dropdown menus spawning offset in scrolled panels, a regression from upgrading to Svelte 5.54#4047
Keavon merged 4 commits intomasterfrom
fix-dropdown-offset

Conversation

@Keavon
Copy link
Copy Markdown
Member

@Keavon Keavon commented Apr 24, 2026

Regression introduced in #3933 by upgrading from Svelte 5.47.1 to 5.54.1

…rom upgrading to Svelte 5.54

Regression introduced in #3933 by upgrading from Svelte 5.47.1 to 5.54.1
Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 1 file

Confidence score: 5/5

  • Automated review surfaced no issues in the provided summaries.
  • No files require special attention.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the FloatingMenu component to use CSS custom properties for positioning and border-radius styling instead of direct inline style manipulation. This change avoids recursive afterUpdate calls and prevents Svelte from overwriting manual style updates. A review comment suggests that these custom properties should be cleared unconditionally at the start of the positioning logic to prevent stale styles, as some properties are currently only reset under specific conditions or not at all.

Comment thread frontend/src/components/layout/FloatingMenu.svelte Outdated
@Keavon Keavon merged commit 7bb01c9 into master Apr 24, 2026
11 checks passed
@Keavon Keavon deleted the fix-dropdown-offset branch April 24, 2026 19:17
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