Преглед изворни кода

Merge branch 'dev' into master-fetch

奔跑的面条 пре 3 година
родитељ
комит
f506ccd2e4
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/views/preview/utils/style.ts

+ 1 - 1
src/views/preview/utils/style.ts

@@ -28,7 +28,7 @@ export const getEditCanvasConfigStyle = (canvas: EditCanvasConfigType) => {
   const computedBackground = canvas.selectColor
     ? { background: canvas.background }
     : {
-        background: `url(${canvas.backgroundImage}) no-repeat center/100% !important`
+        background: `url(${canvas.backgroundImage}) center center / cover no-repeat !important`
       }
   return {
     position: 'relative' as const,