Skip to content

fix(dialog): avoid trainrun close handle overflow#1093

Open
huangse199 wants to merge 2 commits into
OpenRailAssociation:mainfrom
huangse199:cherrycashpilot/issue-739-firefox-dialog-close-artifact
Open

fix(dialog): avoid trainrun close handle overflow#1093
huangse199 wants to merge 2 commits into
OpenRailAssociation:mainfrom
huangse199:cherrycashpilot/issue-739-firefox-dialog-close-artifact

Conversation

@huangse199

Copy link
Copy Markdown

Summary

Validation

  • npx prettier --check src/app/view/dialogs/trainrun-and-section-dialog/trainrun-and-section-dialog.component.scss
  • git diff --check
  • npm run build:standalone

Closes #739

Keep the trainrun dialog drag/close handle within its declared bounds so Firefox does not leave an overflow artifact when closing the dialog.
@huangse199 huangse199 requested a review from a team as a code owner June 1, 2026 11:07

@aiAdrian aiAdrian left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thank you - LGTM

@aiAdrian

aiAdrian commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Please update the commit message :

fix(dialog): avoid trainrun close handle overflow

Keep the trainrun dialog drag/close handle within its declared bounds
so Firefox does not leave an overflow artifact when closing the dialog.

Lines are too long .

@louisgreiner louisgreiner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Enregistrement.de.l.ecran.2026-06-01.145942.mp4

This PR does not fix the bug: a (faded) white square still appears at closing.

Remove the detached drag/close handle as soon as the dialog starts closing
so Firefox cannot fade out its white background as a separate square.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@huangse199

Copy link
Copy Markdown
Author

Thanks for checking and for the video. I pushed an additional fix: the drag/close handle is now removed as soon as the dialog starts closing, so Firefox should no longer fade out that detached white square during the close animation.

I also kept the previous bounds fix in place. I could not run the full local lint here because this environment has Node v20.17.0 while the project dependencies require at least Node v20.19.0 / v22.12.0, and npm ci also reports the current lockfile is out of sync for chokidar/readdirp.

@louisgreiner louisgreiner left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

That's indeed working. Nevertheless, it looks like a big hammer

width: 20px;
height: 326px;
border: 16px solid var(--sbb-header-lean-background-color);
box-sizing: border-box;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Suggested change
box-sizing: border-box;

This has then become useless

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

can you remove this?

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]: trainrun-and-section-tab component closing issue

3 participants