diff --git a/src/Catalog.css b/src/Catalog.css index 49037ad..58075b0 100644 --- a/src/Catalog.css +++ b/src/Catalog.css @@ -74,6 +74,28 @@ body{ } } +@media (max-width: 768px) { + .catalogPage .custom-table { + table-layout: auto; + } + + .meeting-table-head, + .meeting-row { + grid-template-columns: 1fr; + row-gap: 6px; + text-align: left; + justify-items: start; + } + + .meeting-table-head { + column-gap: 0; + } + + .meeting-row .time { + margin-top: 2px; + } +} + .department-container { max-height: 0; overflow: hidden; @@ -238,6 +260,10 @@ body{ display: block; } +.meeting-table-head .table-header { + display: block; +} + .days{ } @@ -271,6 +297,12 @@ tr{ } +.catalog-table-wrapper { + width: 100%; + overflow-x: auto; + -webkit-overflow-scrolling: touch; +} + .catalogPage .custom-table { width: 100%; max-width: 1000px; /* Limit the table width on large screens */ diff --git a/src/CatalogPage.js b/src/CatalogPage.js index 48859dc..bcc1f58 100644 --- a/src/CatalogPage.js +++ b/src/CatalogPage.js @@ -326,7 +326,7 @@ function CatalogPage() { } elements.push( -