diff --git a/src/files-and-uploads/table-components/GalleryCard.jsx b/src/files-and-uploads/table-components/GalleryCard.jsx index 5728f2b3d..19d62ab58 100644 --- a/src/files-and-uploads/table-components/GalleryCard.jsx +++ b/src/files-and-uploads/table-components/GalleryCard.jsx @@ -32,8 +32,9 @@ const GalleryCard = ({ }); return ( - + )} /> - -
+ +
{original.thumbnail ? ( - + ) : ( -
+
)}
- + {original.displayName}
- + {original.wrapperType} diff --git a/src/files-and-uploads/table-components/GalleryCard.scss b/src/files-and-uploads/table-components/GalleryCard.scss new file mode 100644 index 000000000..318659b79 --- /dev/null +++ b/src/files-and-uploads/table-components/GalleryCard.scss @@ -0,0 +1,23 @@ +.gallery-card { + .thumbnail-container { + aspect-ratio: 16 / 9; + + .thumbnail-image { + width: 100%; + height: 100%; + object-fit: contain; + } + } + + &.pgn__card { + .pgn__card-header { + .pgn__card-header-actions { + margin-top: 0; + } + } + } + + .picture-title { + font-size: 12px; + } +} diff --git a/src/index.scss b/src/index.scss index bc0a403f1..f35f14087 100755 --- a/src/index.scss +++ b/src/index.scss @@ -19,3 +19,4 @@ @import "course-updates/CourseUpdates"; @import "export-page/CourseExportPage"; @import "import-page/CourseImportPage"; +@import "files-and-uploads/table-components/GalleryCard";