Skip to content

Create professional demos and 3D mockups in seconds, directly in your browser

feat: update base font size in mockup components for improved readability

CristianOlivera158cd7e308d16
diff --git a/app/components/ui/editor/CanvasElementsLayer.tsx b/app/components/ui/editor/CanvasElementsLayer.tsx
index f5d082b..b2dba8d 100644
--- a/app/components/ui/editor/CanvasElementsLayer.tsx
+++ b/app/components/ui/editor/CanvasElementsLayer.tsx
@@ -337,10 +337,6 @@ export function CanvasElementsLayer({
e.stopPropagation();
if (!elementResizeStart || !setIsDraggingElementResize) return;
- // Medimos el tamaño real (sin rotar) del elemento en pantalla:
- // offsetWidth/offsetHeight ignoran el transform de rotación,
- // así que sirve tanto para imagen/svg (tienen width/height fijo)
- // como para texto (que se ajusta a su contenido).
const hitDiv = e.currentTarget.parentElement as HTMLElement | null;
const measuredWidth = hitDiv?.offsetWidth || toPx(element.width) || 20;
const measuredHeight = hitDiv?.offsetHeight || toPx(element.height) || 20;
diff --git a/app/components/ui/editor/mockups/BraveGlassMockup.tsx b/app/components/ui/editor/mockups/BraveGlassMockup.tsx
index 89501bd..6e0e75d 100644
--- a/app/components/ui/editor/mockups/BraveGlassMockup.tsx
+++ b/app/components/ui/editor/mockups/BraveGlassMockup.tsx
@@ -36,7 +36,7 @@ export function BraveGlassMockup({
const baseGap = 12;
const baseIconSize = 14;
const baseUrlBarHeight = 26;
- const baseFontSize = 11;
+ const baseFontSize = 12;
const headerHeight = baseHeight * headerScale;
const headerPadding = basePadding * headerScale;
diff --git a/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx b/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx
index d2d8a0d..925f93b 100644
--- a/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx
+++ b/app/components/ui/editor/mockups/MacosGhostGlassMockup.tsx
@@ -37,7 +37,7 @@ export function MacosGhostGlassMockup({
const baseButtonSize = 10;
const baseIconSize = 14;
const baseUrlBarHeight = 24;
- const baseFontSize = 10;
+ const baseFontSize = 12;
const headerHeight = baseHeight * headerScale;
const headerPadding = basePadding * headerScale;
diff --git a/app/components/ui/editor/mockups/MacosGhostMockup.tsx b/app/components/ui/editor/mockups/MacosGhostMockup.tsx
index f4c49d6..470e746 100644
--- a/app/components/ui/editor/mockups/MacosGhostMockup.tsx
+++ b/app/components/ui/editor/mockups/MacosGhostMockup.tsx
@@ -37,7 +37,7 @@ export function MacosGhostMockup({
const baseButtonSize = 10;
const baseIconSize = 14;
const baseUrlBarHeight = 24;
- const baseFontSize = 10;
+ const baseFontSize = 12;
const headerHeight = baseHeight * headerScale;
const headerPadding = basePadding * headerScale;
diff --git a/app/components/ui/editor/mockups/MacosGlassMockup.tsx b/app/components/ui/editor/mockups/MacosGlassMockup.tsx
index 6858bca..37eb183 100644
--- a/app/components/ui/editor/mockups/MacosGlassMockup.tsx
+++ b/app/components/ui/editor/mockups/MacosGlassMockup.tsx
@@ -37,7 +37,7 @@ export function MacosGlassMockup({
const baseButtonSize = 10;
const baseIconSize = 14;
const baseUrlBarHeight = 24;
- const baseFontSize = 10;
+ const baseFontSize = 12;
const headerHeight = baseHeight * headerScale;
const headerPadding = basePadding * headerScale;
diff --git a/app/components/ui/editor/mockups/MacosMockup.tsx b/app/components/ui/editor/mockups/MacosMockup.tsx
index 6b49af5..6b5c4c9 100644
--- a/app/components/ui/editor/mockups/MacosMockup.tsx
+++ b/app/components/ui/editor/mockups/MacosMockup.tsx
@@ -36,7 +36,7 @@ export function MacosMockup({
const baseButtonSize = 10;
const baseIconSize = 14;
const baseUrlBarHeight = 24;
- const baseFontSize = 10;
+ const baseFontSize = 12;
const headerHeight = baseHeight * headerScale;
const headerPadding = basePadding * headerScale;