Skip to content

fix(test-config): some layout and state issues (@byseif21)#7500

Open
byseif21 wants to merge 4 commits intomonkeytypegame:masterfrom
byseif21:fix/test-bar
Open

fix(test-config): some layout and state issues (@byseif21)#7500
byseif21 wants to merge 4 commits intomonkeytypegame:masterfrom
byseif21:fix/test-bar

Conversation

@byseif21
Copy link
Contributor

fix some widths issue for the test bar:

ways to reproduce

  • case 1
    1- being logged in
    2- switch to quote mode
    3- log out
    4- observe extra spacing before all button

  • case 2
    1- switch between modes s (e.g., time → quote)
    2- open DevTools "to change size"
    3- switch modes again and be lastly in quote mode selection
    3- close DevTools
    4- the bar incorrectly sized

  • case 3
    this have many inconstant way to reproduce but that will give what happens shortly
    1- stay in a mode other than quote
    2- open the console and run qsa("#testConfig .quoteLength .textButton").removeClass("active")
    3- switch to quote mode
    4- no buttons get rehighlighted as it should

Copilot AI review requested due to automatic review settings February 12, 2026 16:33
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Feb 12, 2026
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Feb 12, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes UI sizing + active-state inconsistencies in the test config bar when switching modes (esp. quote mode), including after viewport changes (DevTools) and when quote-length active classes get cleared.

Changes:

  • Update mode-switch logic to call updateActiveExtraButtons with "quoteLength" (instead of "quote") when entering quote mode.
  • Remove an unconditional quoteLength active-state update from instantUpdate (so quote-length buttons aren’t force-touched when not in quote mode).
  • Clear the submenu’s inline width after the transition animation to prevent stale fixed widths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants