mirror of
https://github.com/nexu-io/open-design.git
synced 2026-06-01 03:14:35 +07:00
Merge 5db6cab5f6 into 53fb175855
This commit is contained in:
commit
70d31683d0
1 changed files with 4 additions and 4 deletions
|
|
@ -614,8 +614,8 @@ function previewScaleShellStyle(
|
|||
): CSSProperties & Record<string, string | number> {
|
||||
if (viewport === 'desktop') {
|
||||
return {
|
||||
width: `${100 / previewScale}%`,
|
||||
height: `${100 / previewScale}%`,
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
transform: `scale(${previewScale})`,
|
||||
transformOrigin: '0 0',
|
||||
};
|
||||
|
|
@ -635,8 +635,8 @@ function manualEditPreviewShellStyle(
|
|||
): CSSProperties & Record<string, string | number> {
|
||||
if (viewport === 'desktop' && frozenWidth) {
|
||||
return {
|
||||
width: `${frozenWidth / previewScale}px`,
|
||||
height: `${100 / previewScale}%`,
|
||||
width: `${frozenWidth}px`,
|
||||
height: '100%',
|
||||
transform: `scale(${previewScale})`,
|
||||
transformOrigin: '0 0',
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue