fix: media asset on local proxy server

This commit is contained in:
Daniel Lautzenheiser
2023-01-10 16:00:07 -05:00
parent 0678b3ead8
commit 81930a7010
27 changed files with 141 additions and 19 deletions

View File

@ -73,8 +73,8 @@ const CardWrapper = ({
<div
style={{
...style,
left: typeof style.left === 'number' ? style.left ?? +gutter * columnIndex : style.left,
top: typeof style.top === 'number' ? style.top + gutter : style.top,
left: typeof style.left === 'number' ? style.left ?? gutter * columnIndex : style.left,
top: style.top,
width: typeof style.width === 'number' ? style.width - gutter : style.width,
height: typeof style.height === 'number' ? style.height - gutter : style.height,
}}
@ -156,6 +156,7 @@ const VirtualizedGrid = (props: MediaLibraryCardGridProps) => {
columnCount,
} as CardGridItemData
}
style={{ overflow: 'hidden', overflowY: 'scroll' }}
>
{CardWrapper}
</Grid>

View File

@ -25,7 +25,7 @@ const StyledFab = styled(Fab)`
* TODO Responsive styling needs to be overhauled. Current setup requires specifying
* widths per breakpoint.
*/
const cardWidth = `280px`;
const cardWidth = `278px`;
const cardHeight = `240px`;
const cardMargin = `10px`;