mirror of
https://github.com/vercel/commerce.git
synced 2025-05-16 14:36:59 +00:00
Try to fix fullscreen on macos part 2
This commit is contained in:
parent
6823013494
commit
7fe5c0b8ed
@ -1,4 +1,5 @@
|
||||
import { Box, Stack, Image, Text } from "@chakra-ui/react";
|
||||
import "./ImageCardContent.module.css"
|
||||
import screenfull from "screenfull";
|
||||
|
||||
export default function ImageCardContent(props: {
|
||||
@ -9,26 +10,6 @@ export default function ImageCardContent(props: {
|
||||
|
||||
return (
|
||||
<>
|
||||
<style jsx>{`
|
||||
*|*:fullscreen:not(:root) {
|
||||
position: fixed !important;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
right: 0 !important;
|
||||
bottom: 0 !important;
|
||||
width: 100% !important;
|
||||
height: 100% !important;
|
||||
margin: 0 !important;
|
||||
min-width: 0 !important;
|
||||
max-width: none !important;
|
||||
min-height: 0 !important;
|
||||
max-height: none !important;
|
||||
box-sizing: border-box !important;
|
||||
object-fit: contain;
|
||||
transform: none !important;
|
||||
}
|
||||
`}
|
||||
</style>
|
||||
<Box
|
||||
className={props.style.imageContainer}
|
||||
w={'full'}
|
||||
|
Loading…
x
Reference in New Issue
Block a user