fix: media asset on local proxy server
This commit is contained in:
@ -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>
|
||||
|
@ -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`;
|
||||
|
||||
|
Reference in New Issue
Block a user