From 98b9a2354b5e718c815c9cc190d73dd9409990aa Mon Sep 17 00:00:00 2001 From: Jen Breese-Kauth Date: Fri, 23 Aug 2024 23:23:44 +0000 Subject: [PATCH] fixup for the extra space --- .../branch-locations-filtering-table.tsx | 12 ++++++------ .../views/sul-people/sul-people-table-view.tsx | 6 +++--- .../study-place-filtering-table.tsx | 18 +++++++++--------- 3 files changed, 18 insertions(+), 18 deletions(-) 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 cf7deb62..a13aeb15 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 @@ -153,13 +153,13 @@ const TableRow = ({id, imageUrl, path, title, phone, email, mapUrl, address, hou - {hoursId ? ( + {hoursId && (
- ) : ( - "" )} + {/* Without this, the responsive table library injects a " ". */} + {""} {phone && ( @@ -171,7 +171,7 @@ const TableRow = ({id, imageUrl, path, title, phone, email, mapUrl, address, hou {phone} )} - {email ? ( + {email && ( {email} - ) : ( - "" )} + {/* Without this, the responsive table library injects a " ". */} + {""} {address && mapUrl && ( 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 a421afc7..421b0bec 100644 --- a/src/components/views/sul-people/sul-people-table-view.tsx +++ b/src/components/views/sul-people/sul-people-table-view.tsx @@ -244,13 +244,13 @@ const SulPeopleTableView = ({items, hasHeading}: Props) => { )} - {item.libCalId ? ( + {item.libCalId && (
- ) : ( - "" )} + {/* Without this, the responsive table library injects a " ". */} + {""} ))} 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 d6d882e0..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 @@ -210,7 +210,7 @@ const StudyPlaceFilteringTable = ({items}: Props) => { className="block sm:flex-col sm:flex-wrap md:grid md:grid-cols-2 md:grid-rows-[repeat(5,minmax(0,auto))] md:justify-items-start md:gap-x-20 md:text-left lg:!table-row lg:max-h-none" > - {item.branchImageUrl ? ( + {item.branchImageUrl && (
{ sizes="(max-width: 992px) 300px, 150px" />
- ) : ( - "" )} + {/* Without this, the responsive table library injects a " ". */} + {""} { - {item.libHours ? ( + {item.libHours && (
{item.libHours && }
- ) : ( - "" )} + {/* Without this, the responsive table library injects a " ". */} + {""} {item.features && ( @@ -262,7 +262,7 @@ const StudyPlaceFilteringTable = ({items}: Props) => { )} - {item.libCalId ? ( + {item.libCalId && ( { - ) : ( - "" )} + {/* Without this, the responsive table library injects a " ". */} + {""} ))}