Skip to content

Commit

Permalink
fix: cross-browser image sizing
Browse files Browse the repository at this point in the history
  • Loading branch information
ColinBuyck committed Sep 14, 2022
1 parent ea32152 commit 29df631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
4 changes: 2 additions & 2 deletions ui-components/src/blocks/ImageCard.scss
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

img {
border-radius: var(--border-radius);
width: 100%;
aspect-ratio: 16 / 9;
height: var(--image-height);
object-fit: cover;
}
Expand Down Expand Up @@ -58,7 +58,7 @@
}

img {
aspect-ratio: 16 / 9;
width: 100%;
display: block;

&:nth-child(1) {
Expand Down
12 changes: 0 additions & 12 deletions ui-components/src/overlays/Overlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,6 @@ export const Overlay = (props: OverlayProps) => {
}
}, [elForPortal, overlayRoot])

// // disable body scrolling when the overlay is open
// useEffect(() => {
// if (props.scrollable) return
// if (!(overlayRoot && elForPortal)) return

// props.open ? disableBodyScroll(elForPortal) : enableBodyScroll(elForPortal)

// return () => {
// enableBodyScroll(elForPortal)
// }
// }, [elForPortal, overlayRoot, props.open])

return (
elForPortal &&
createPortal(
Expand Down

0 comments on commit 29df631

Please sign in to comment.