Skip to content

Improve RMC mobile header layout to preserve right-side controls and Export Video action - #1583

Merged
langonginc merged 7 commits into
mainfrom
copilot/enhance-mobile-experience-rmc
Oct 7, 2026
Merged

langonginc merged 7 commits into
mainfrom
copilot/enhance-mobile-experience-rmc

Conversation

Copilot AI commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

On narrow/mobile screens in Rail Map Chronicle, header actions in the top-right were collapsing into each other and the Export video action could be visually pushed out. This PR makes the timeline header layout responsive so controls remain reachable and readable at small widths.

  • Responsive header structure (timeline window header)

    • Switch header container to responsive flow:
      • base: stacked sections (column)
      • md+: single-row layout (row)
    • This separates primary project actions from utility controls instead of forcing both into one compressed row.
  • Overflow handling for dense action groups

    • Enable horizontal overflow on both action clusters (maxW="100%", overflowX="auto").
    • Keep right-side control alignment responsive (flex-end on base, flex-start on md+) so buttons remain accessible without overlap.
  • Targeted regression coverage

    • Add a focused test case asserting narrow-viewport stacked layout behavior in timeline-window-header.test.tsx.
<Flex
  direction={{ base: 'column', md: 'row' }}
  align={{ base: 'stretch', md: 'center' }}
>
  <HStack minW={0} overflowX="auto" maxW="100%">...</HStack>
  <HStack
    ml={{ base: 0, md: 'auto' }}
    overflowX="auto"
    maxW="100%"
    justifyContent={{ base: 'flex-end', md: 'flex-start' }}
  >
    ...
  </HStack>
</Flex>

Copilot AI linked an issue Oct 7, 2026 that may be closed by this pull request
@langonginc

Copy link
Copy Markdown
Member

@copilot rmc界面下左上角和右上角图标容易重叠到一起,能够针对屏幕宽度自适应是否显示左上角的菜单文字,如果宽度还是不够则自动分成两行。

Co-authored-by: langonginc <59787082+langonginc@users.noreply.github.com>
Copilot AI changed the title [WIP] Enhance mobile experience in RMC Improve RMC mobile header layout to preserve right-side controls and Export Video action Oct 7, 2026
Copilot AI requested a review from langonginc October 7, 2026 05:14
Co-authored-by: langonginc <59787082+langonginc@users.noreply.github.com>
@langonginc
langonginc marked this pull request as ready for review October 7, 2026 07:54
Copilot AI balanced review requested due to automatic review settings October 7, 2026 07:54

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@langonginc
langonginc merged commit 09e7d95 into main Oct 7, 2026
4 checks passed
@langonginc
langonginc deleted the copilot/enhance-mobile-experience-rmc branch October 7, 2026 12:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Enhance mobile experience in RMC

3 participants