From d7a4b5b45b6a33ea650d80e8cb5ab4d0fbc04599 Mon Sep 17 00:00:00 2001 From: Kristin Aoki <42981026+KristinAoki@users.noreply.github.com> Date: Wed, 23 Aug 2023 15:17:26 -0400 Subject: [PATCH] fix: add word break style for long words (#574) --- src/files-and-uploads/FileInfo.jsx | 22 +++++++++++++------ src/files-and-uploads/FilesAndUploads.jsx | 2 +- .../table-components/GalleryCard.jsx | 8 ++++--- .../table-components/ListCard.jsx | 8 ++++--- 4 files changed, 26 insertions(+), 14 deletions(-) diff --git a/src/files-and-uploads/FileInfo.jsx b/src/files-and-uploads/FileInfo.jsx index 59f3a11ce..a07c40851 100644 --- a/src/files-and-uploads/FileInfo.jsx +++ b/src/files-and-uploads/FileInfo.jsx @@ -48,7 +48,11 @@ const FileInfo = ({ > - {asset.displayName} +
+ + {asset.displayName} + +
@@ -83,9 +87,11 @@ const FileInfo = ({ - - {asset.portableUrl} - +
+ + {asset.portableUrl} + +
- - {asset.externalUrl} - +
+ + {asset.externalUrl} + +
) : ( -
+
{ currentView === 'card' && } { currentView === 'list' && } diff --git a/src/files-and-uploads/table-components/GalleryCard.jsx b/src/files-and-uploads/table-components/GalleryCard.jsx index dde7c2f86..57cd1c277 100644 --- a/src/files-and-uploads/table-components/GalleryCard.jsx +++ b/src/files-and-uploads/table-components/GalleryCard.jsx @@ -61,9 +61,11 @@ const GalleryCard = ({
)}
- - {original.displayName} - +
+ + {original.displayName} + +
diff --git a/src/files-and-uploads/table-components/ListCard.jsx b/src/files-and-uploads/table-components/ListCard.jsx index 5f987f76d..495741a2a 100644 --- a/src/files-and-uploads/table-components/ListCard.jsx +++ b/src/files-and-uploads/table-components/ListCard.jsx @@ -50,9 +50,11 @@ const ListCard = ({ - - {original.displayName} - +
+ + {original.displayName} + +
{original.wrapperType}