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> {
|
): CSSProperties & Record<string, string | number> {
|
||||||
if (viewport === 'desktop') {
|
if (viewport === 'desktop') {
|
||||||
return {
|
return {
|
||||||
width: `${100 / previewScale}%`,
|
width: '100%',
|
||||||
height: `${100 / previewScale}%`,
|
height: '100%',
|
||||||
transform: `scale(${previewScale})`,
|
transform: `scale(${previewScale})`,
|
||||||
transformOrigin: '0 0',
|
transformOrigin: '0 0',
|
||||||
};
|
};
|
||||||
|
|
@ -635,8 +635,8 @@ function manualEditPreviewShellStyle(
|
||||||
): CSSProperties & Record<string, string | number> {
|
): CSSProperties & Record<string, string | number> {
|
||||||
if (viewport === 'desktop' && frozenWidth) {
|
if (viewport === 'desktop' && frozenWidth) {
|
||||||
return {
|
return {
|
||||||
width: `${frozenWidth / previewScale}px`,
|
width: `${frozenWidth}px`,
|
||||||
height: `${100 / previewScale}%`,
|
height: '100%',
|
||||||
transform: `scale(${previewScale})`,
|
transform: `scale(${previewScale})`,
|
||||||
transformOrigin: '0 0',
|
transformOrigin: '0 0',
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue