diff --git a/src/components/MediaLibrary/MediaLibrary.css b/src/components/MediaLibrary/MediaLibrary.css index b731c6164a5c..0a175226550c 100644 --- a/src/components/MediaLibrary/MediaLibrary.css +++ b/src/components/MediaLibrary/MediaLibrary.css @@ -1,3 +1,5 @@ +@import './MediaLibraryFooter.css'; + :root { --mediaLibraryCardWidth: 300px; --mediaLibraryCardMargin: 10px; @@ -33,31 +35,6 @@ margin-top: 20px; } -.nc-mediaLibrary-buttonRight { - float: right; - margin-left: 10px; -} - -.nc-mediaLibrary-buttonLeft { - float: left; - margin-right: 10px; -} - -.nc-mediaLibrary-button-loader { - float: left; - margin: 8px 20px; -} - -.nc-mediaLibrary-button-loaderSpinner { - position: static; -} - -.nc-mediaLibrary-button-loaderText { - position: relative; - top: 2px; - margin-left: 18px; -} - .nc-mediaLibrary-searchInput { @apply --input; font-family: var(--fontFamilyPrimary); @@ -69,14 +46,6 @@ z-index: 1; } -.nc-mediaLibrary-thumbnail { - max-height: 44px; - max-width: 88px; - margin: -10px auto; - display: block; - border-radius: 4px; -} - .nc-mediaLibrary-emptyMessage { height: 100%; width: 100%; @@ -88,9 +57,6 @@ align-items: center; } -.nc-mediaLibrary-paginatingMessage { -} - .nc-mediaLibrary-cardGrid-container { height: calc(100% - 150px); margin: 20px auto 0; @@ -109,6 +75,7 @@ border: var(--textFieldBorder); border-radius: var(--borderRadius); cursor: pointer; + overflow: hidden; } .nc-mediaLibrary-card-selected { diff --git a/src/components/MediaLibrary/MediaLibraryFooter.css b/src/components/MediaLibrary/MediaLibraryFooter.css new file mode 100644 index 000000000000..4133dd6279c3 --- /dev/null +++ b/src/components/MediaLibrary/MediaLibraryFooter.css @@ -0,0 +1,25 @@ +.nc-mediaLibrary-footer-buttonRight { + float: right; + margin-left: 10px; +} + +.nc-mediaLibrary-footer-buttonLeft { + float: left; + margin-right: 10px; +} + +.nc-mediaLibrary-footer-button-loader { + float: left; + margin: 8px 20px; +} + +.nc-mediaLibrary-footer-button-loaderSpinner { + position: static; +} + +.nc-mediaLibrary-footer-button-loaderText { + position: relative; + top: 2px; + margin-left: 18px; +} + diff --git a/src/components/MediaLibrary/MediaLibraryFooter.js b/src/components/MediaLibrary/MediaLibraryFooter.js index a93bfc433398..47b728bef016 100644 --- a/src/components/MediaLibrary/MediaLibraryFooter.js +++ b/src/components/MediaLibrary/MediaLibraryFooter.js @@ -16,9 +16,9 @@ const MediaLibraryFooter = ({ const shouldShowLoader = isPersisting || isDeleting; const loaderText = isPersisting ? 'Uploading...' : 'Deleting...'; const loader = ( -
- - {loaderText} +
+ + {loaderText}
); return ( @@ -26,7 +26,7 @@ const MediaLibraryFooter = ({