Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

enable resizing up to 50px width if breakpoint allows

Oleg Isonen8b1dc19e96c0
diff --git a/app/designer/features/breakpoints/width-setting.tsx b/app/designer/features/breakpoints/width-setting.tsx
index 5b1cf0d1c8..a8db51ef72 100644
--- a/app/designer/features/breakpoints/width-setting.tsx
+++ b/app/designer/features/breakpoints/width-setting.tsx
@@ -8,12 +8,9 @@ import {
import { Slider, Text, Flex } from "~/shared/design-system";
import { sort } from "./sort";
-// Currently most populare mobile resolution
-export const minWidth = 360;
-export const maxWidth = 3000;
-
// Doesn't make sense to allow resizing the canvas lower/higher than this.
-const minResizeWidth = 200;
+export const minWidth = 50;
+export const maxWidth = 3000;
/**
* Return the next breakpoint from the currently selected one, sorted by the `sort()`
@@ -44,8 +41,8 @@ export const WidthSetting = () => {
// We want to enable unconstrained resizing in a preview mode
const min = isPreviewMode
- ? minResizeWidth
- : Math.max(minResizeWidth, selectedBreakpoint.minWidth);
+ ? minWidth
+ : Math.max(minWidth, selectedBreakpoint.minWidth);
const max = isPreviewMode
? maxWidth
: Math.min(
diff --git a/package.json b/package.json
index 1fa6cc219b..8be6ed4c8e 100644
--- a/package.json
+++ b/package.json
@@ -42,7 +42,7 @@
"@remix-run/serve": "^1.2.3",
"@remix-run/vercel": "^1.2.3",
"@stitches/react": "^1.2.7",
- "@webstudio-is/sdk": "^0.2.1",
+ "@webstudio-is/sdk": "^0.2.2",
"bson-objectid": "^2.0.2",
"camelcase": "^6.3.0",
"hyphenate-style-name": "^1.0.4",
diff --git a/yarn.lock b/yarn.lock
index fecd02c54c..7b3a747701 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -1814,10 +1814,10 @@
dependencies:
web-streams-polyfill "^3.1.1"
-"@webstudio-is/sdk@^0.2.1":
- version "0.2.1"
- resolved "https://registry.yarnpkg.com/@webstudio-is/sdk/-/sdk-0.2.1.tgz#9b309add218a2ee19e946039b524fd5062bdec7c"
- integrity sha512-fIdcLuaaH7xYJ/eIXbC6N8otBt5uB8pw3UaSOy4xh3uyw29NYz0j9Wp8NKkG6pLVNfBEP+45HUyl1z3n3nbFrA==
+"@webstudio-is/sdk@^0.2.2":
+ version "0.2.2"
+ resolved "https://registry.yarnpkg.com/@webstudio-is/sdk/-/sdk-0.2.2.tgz#1e51286f7a29d1b427ce867f6f62be245c654fa5"
+ integrity sha512-FODU8hr96m0ZwuMrLaV82KUeCaIiuAE1bn0e7il0QMkceVq1C53AnZaGrWKz0TV+2NWBEOyJ557F8G1aOWBvLg==
dependencies:
"@prisma/client" "^3.10.0"
"@stitches/core" "^1.2.7"