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.

use em to make sure it works with any font size

Roman Pominovbc27de9f2c58
diff --git a/packages/design-system/src/components/text.tsx b/packages/design-system/src/components/text.tsx
index d007036201..065fdb33d3 100644
--- a/packages/design-system/src/components/text.tsx
+++ b/packages/design-system/src/components/text.tsx
@@ -60,10 +60,10 @@ export const Text = styled("div", {
overflow: "hidden",
// To make sure text is not clipped vertically
- pt: 10,
- pb: 10,
- mt: -10,
- mb: -10,
+ pt: "0.5em",
+ pb: "0.5em",
+ mt: "-0.5em",
+ mb: "-0.5em",
flexBasis: 0,
flexGrow: 1,