Skip to content

Conversation

@ritorhymes
Copy link

@ritorhymes ritorhymes commented Sep 18, 2025

Description

The tables throughout the site are not mobile responsive and cause horizontal page overflow when they're too wide to fit on the page. This breaks the layout on mobile and introduces difficulties scrolling around the page.

This fix:

  • Modifies global table behavior to be horizontally scrollable internally instead of the page itself.
  • Creates _tables.scss for table helper styles.
  • Creates a .sticky-table class to allow tables' top row of cells to remain fixed for context while scrolling.
  • Extends .market-table with .sticky-table so the top filter row is always accessible.
  • Moves .market-table from addons.scss into _tables.scss since it is reused on multiple pages.

Pages with tables that had page overflow:
/docs/internal-statistics/
/docs/internal-events/
/docs/constants/
/docs/alerts/

You can test the fix out on this page of the demo site zaproxy.ritovision.com/docs/constants/

Before and After

Recorded on an Android Chrome browser, screen size about 450px.

Before

zaproxy-tables-before_1.webm

After

zaproxy-tables-after.webm

@psiinon
Copy link
Member

psiinon commented Sep 18, 2025

Logo
Checkmarx One – Scan Summary & Detailsb75f6caa-eaa8-4dc3-9777-c771d7aa3034

Great job! No new security vulnerabilities introduced in this pull request


Use @Checkmarx to reach out to us for assistance.

Just send a PR comment with @Checkmarx followed by a natural language request.

Examples: @Checkmarx how are you able to help me? @Checkmarx rescan this PR

@kingthorin
Copy link
Member

@ritorhymes ritorhymes force-pushed the fix/table-responsive-scroll branch from 274bac2 to 46cb499 Compare September 18, 2025 11:05
@ritorhymes
Copy link
Author

@kingthorin got it, thanks! I just took care of them.

@thc202 thc202 changed the title fix(table): prevent broken page layout from table overflow Prevent broken page layout from table overflow Sep 29, 2025
Created _tables.scss for global table helpers

Extended .market-table with .sticky-table

Moved .market-table from addson.scss to _tables.scss since it's reused on other pages

Signed-off-by: Rito Rhymes <[email protected]>
@ritorhymes ritorhymes force-pushed the fix/table-responsive-scroll branch from 05da725 to edab822 Compare December 27, 2025 10:49
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.

3 participants