diff --git a/src/components/views/sul-branch-locations/filtering-table/branch-locations-filtering-table.tsx b/src/components/views/sul-branch-locations/filtering-table/branch-locations-filtering-table.tsx index e59a9fda..15d74353 100644 --- a/src/components/views/sul-branch-locations/filtering-table/branch-locations-filtering-table.tsx +++ b/src/components/views/sul-branch-locations/filtering-table/branch-locations-filtering-table.tsx @@ -93,17 +93,19 @@ const BranchLocationFilteringTable = ({items}: Props) => { - +
- - - + @@ -126,38 +128,42 @@ const TableRow = ({id, imageUrl, path, title, phone, email, mapUrl, address, hou className="block sm:flex-col sm:flex-wrap sm:text-center md:grid md:grid-cols-2 md:grid-rows-[repeat(4,minmax(0,auto))] md:justify-items-start md:gap-x-20 md:text-left md:align-top lg:!table-row lg:max-h-none" > - - diff --git a/src/components/views/sul-people/sul-people-table-view.tsx b/src/components/views/sul-people/sul-people-table-view.tsx index 5e5c154d..421b0bec 100644 --- a/src/components/views/sul-people/sul-people-table-view.tsx +++ b/src/components/views/sul-people/sul-people-table-view.tsx @@ -183,13 +183,13 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => { {displayedItems.map(item => ( ))} diff --git a/src/components/views/sul-study-place/filtering-table/study-place-filtering-table.tsx b/src/components/views/sul-study-place/filtering-table/study-place-filtering-table.tsx index c17891bf..293522f1 100644 --- a/src/components/views/sul-study-place/filtering-table/study-place-filtering-table.tsx +++ b/src/components/views/sul-study-place/filtering-table/study-place-filtering-table.tsx @@ -211,7 +211,7 @@ const StudyPlaceFilteringTable = ({items}: Props) => { > - ))} diff --git a/src/styles/globals.css b/src/styles/globals.css index 546fb1e9..c4b5aa08 100644 --- a/src/styles/globals.css +++ b/src/styles/globals.css @@ -38,25 +38,17 @@ border-bottom: 1px #ABABA9 solid !important; } .responsive-table tr td.pivoted { + padding-top: 0 !important; + padding-bottom: 0 !important; padding-left: 0 !important; text-align: unset !important; } table.sul-people-table thead + tbody { border-top: 0; } - @media screen and (max-width: 55.29em) { - .responsive-table tr td.pivoted { - padding-top: 0 !important; - padding-bottom: 16px !important; - } - .responsive-table tr td.pivoted:first-of-type { - padding-top: 16px !important; - } - } .responsive-table ul li:last-child span { display: none; } - @media screen and (max-width: 40em) { .responsiveTable.responsive-table-study td.table-image { display: block;
Photo + Library Open/Closed + + Open/Closed + Contact Address -
- {imageUrl && ( - - - - )} -
+ {imageUrl && ( + + + + )}
-

{title}

+

{title}

- {hoursId && } + + {hoursId && ( +
+ +
+ )} + {/* Without this, the responsive table library injects a " ". */} + {""}
+ {phone && ( {phone} @@ -166,22 +172,26 @@ const TableRow = ({id, imageUrl, path, title, phone, email, mapUrl, address, hou {email && ( {email} )} + {/* Without this, the responsive table library injects a " ". */} + {""} {address && mapUrl && ( - - -
- + )}
{item.photoUrl && ( @@ -210,18 +210,20 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => { {item.title && ( - + {item.title} )} - {item.fullTitle &&
{item.fullTitle}
} + {item.fullTitle && ( +
{item.fullTitle}
+ )}
{!!item.researchAreas?.length && ( -
+
Expertise: {item.researchAreas.join(", ")}
@@ -229,7 +231,7 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => {
{item.email && ( - <> +
{ {item.email} - +
)}
- {item.libCalId && } + {item.libCalId && ( +
+ +
+ )} + {/* Without this, the responsive table library injects a " ". */} + {""}
{item.branchImageUrl && ( -
+
{ />
)} + {/* Without this, the responsive table library injects a " ". */} + {""}
{
{item.branchTitle}
- {item.libHours && } + + {item.libHours && ( +
+ {item.libHours && } +
+ )} + {/* Without this, the responsive table library injects a " ". */} + {""}
{item.features && ( -
+
Features: {item.features.join(", ")}
@@ -257,7 +265,7 @@ const StudyPlaceFilteringTable = ({items}: Props) => { {item.libCalId && (
@@ -267,6 +275,8 @@ const StudyPlaceFilteringTable = ({items}: Props) => {
)} + {/* Without this, the responsive table library injects a " ". */} + {""}