From 813d8ca3e410637b925572fa7edd7d431978833b Mon Sep 17 00:00:00 2001 From: Saahith <22772542+saahithjanapati@users.noreply.github.com> Date: Thu, 25 Sep 2025 10:22:24 -0400 Subject: [PATCH 1/2] Improve catalog table responsiveness --- src/Catalog.css | 44 +++++++++++++++++++++++++++++++++++++++++++- src/CatalogPage.js | 16 +++++++++++----- 2 files changed, 54 insertions(+), 6 deletions(-) diff --git a/src/Catalog.css b/src/Catalog.css index 49037ad..a37dd64 100644 --- a/src/Catalog.css +++ b/src/Catalog.css @@ -187,6 +187,26 @@ body{ .button-container{ display: flex; justify-content: flex-end; + gap: 0.5rem; + flex-wrap: wrap; +} + +.catalog-link{ + display: inline-flex; + text-decoration: none; +} + +.catalog-link .catalog-button{ + width: 100%; +} + +.course-table-container{ + width: 100%; + overflow-x: auto; +} + +.course-table-container .custom-table{ + min-width: 600px; } @@ -537,7 +557,16 @@ tr.title-header:hover th{ .catalogPage .catalog-button { text-align: right; font-size: 8px; - white-space: nowrap; + white-space: nowrap; + } + + .catalogPage .button-container{ + justify-content: flex-start; + gap: 0.25rem; + } + + .catalogPage .external-buttons{ + width: auto; } .toggle-button { @@ -629,6 +658,19 @@ tr.title-header:hover th{ .section-title{ font-size: 20px; } + .catalogPage .course-table-container{ + margin-bottom: 1.5rem; + } + .catalogPage .button-container{ + flex-direction: column; + align-items: stretch; + } + .catalogPage .button-container .catalog-link{ + width: 100%; + } + .catalogPage .catalog-button{ + width: 100%; + } .catalog-section { padding: 10px; /* Add some padding to the section for narrower screens */ } diff --git a/src/CatalogPage.js b/src/CatalogPage.js index 48859dc..f06d6d1 100644 --- a/src/CatalogPage.js +++ b/src/CatalogPage.js @@ -285,10 +285,16 @@ function CatalogPage() {