1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-06-30 22:26:38 -04:00

fix max-width: undefined

This commit is contained in:
2022-03-11 18:07:27 -05:00
parent 87848cc697
commit 50071eef58
3 changed files with 166 additions and 171 deletions

View File

@ -28,7 +28,7 @@ const IFrame = ({ src, title, height, width, allowScripts, noScroll, css, ...res
loading="lazy"
css={{
height: `${height}px`,
maxWidth: width ? `${width}px` : null,
maxWidth: width ? `${width}px` : "100%",
...css,
}}
{...rest}