mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
Fit full 1920x1080 page inside graphics preview iframe
This commit is contained in:
@@ -176,6 +176,7 @@ const onDragStart = (event: DragEvent, graphic: GraphicConfig) => {
|
||||
.graphics-preview__frame-wrap {
|
||||
width: 100%;
|
||||
aspect-ratio: 16 / 9;
|
||||
container-type: inline-size;
|
||||
border-radius: 8px;
|
||||
border: 1px solid rgb(255 255 255 / 12%);
|
||||
background:
|
||||
@@ -190,8 +191,10 @@ const onDragStart = (event: DragEvent, graphic: GraphicConfig) => {
|
||||
}
|
||||
|
||||
.graphics-preview__frame {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
width: 1920px;
|
||||
height: 1080px;
|
||||
border: 0;
|
||||
transform: scale(calc(100cqw / 1920));
|
||||
transform-origin: top left;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user