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) => { -
Photo | -+ | Library | -Open/Closed | -+ | + Open/Closed + | +Contact | Address | @@ -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" >
-
- {imageUrl && (
-
-
+ {imageUrl && (
+
+ |
- {title}+{title} |
-
- {hoursId && |
+ {hoursId && (
+
+
+ )}
+ {/* Without this, the responsive table library injects a " ". */}
+ {""}
|
- + |
{phone && (
|
{address && mapUrl && (
-
-
+
+
)}
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{item.photoUrl && (
@@ -210,18 +210,20 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => {
{item.title && (
- {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.libCalId && |
+
+ )}
+ {/* Without this, the responsive table library injects a " ". */}
+ {""}
|
{item.branchImageUrl && (
-
+ |
{ |
{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 " ". */}
+ {""}
|
))}
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;