From f339b70f30fde2e331f69ade43bbf541ba81dfb1 Mon Sep 17 00:00:00 2001 From: Achintha Isuru Date: Sun, 1 Feb 2026 15:54:23 -0500 Subject: [PATCH] feat: Adjust scaling logic for web frame dimensions to improve layout responsiveness --- .../core/lib/src/presentation/widgets/web_mobile_frame.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/mobile/packages/core/lib/src/presentation/widgets/web_mobile_frame.dart b/apps/mobile/packages/core/lib/src/presentation/widgets/web_mobile_frame.dart index 6a98c784..0c5b1d00 100644 --- a/apps/mobile/packages/core/lib/src/presentation/widgets/web_mobile_frame.dart +++ b/apps/mobile/packages/core/lib/src/presentation/widgets/web_mobile_frame.dart @@ -109,8 +109,8 @@ class _WebFrameContentState extends State<_WebFrameContent> { child: LayoutBuilder( builder: (BuildContext context, BoxConstraints constraints) { // Scale down if screen is too small - final double scaleX = constraints.maxWidth / (frameWidth + 80); - final double scaleY = constraints.maxHeight / (frameHeight + 80); + final double scaleX = constraints.maxWidth / (frameWidth - 150); + final double scaleY = constraints.maxHeight / (frameHeight - 220); final double scale = (scaleX < 1 || scaleY < 1) ? (scaleX < scaleY ? scaleX : scaleY) : 1.0;