From 678741c963c26e8a0d8bc06986e7491b1b18c17a Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Sat, 13 Jun 2026 23:42:49 +0000 Subject: [PATCH 1/3] Update layout_config.dart --- commet/lib/config/layout_config.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commet/lib/config/layout_config.dart b/commet/lib/config/layout_config.dart index f1ee7739b..ad5d76bf0 100644 --- a/commet/lib/config/layout_config.dart +++ b/commet/lib/config/layout_config.dart @@ -69,7 +69,7 @@ extension LayoutQueryData on MediaQueryData { if (PlatformUtils.isAndroid || PlatformUtils.isWeb) { final bool useMobileLayout = - (size.width * preferences.appScale.value) < 600; + (size.shortestSide * preferences.appScale.value) < 600; if (useMobileLayout) { return LayoutType.mobile; } From 594269cb7b1f5a21d94f6a9e41e75db0a39ae2a6 Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Sun, 14 Jun 2026 00:07:07 +0000 Subject: [PATCH 2/3] Update layout_config.dart --- commet/lib/config/layout_config.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commet/lib/config/layout_config.dart b/commet/lib/config/layout_config.dart index ad5d76bf0..2d66d9afc 100644 --- a/commet/lib/config/layout_config.dart +++ b/commet/lib/config/layout_config.dart @@ -63,7 +63,7 @@ extension LayoutQueryData on MediaQueryData { return LayoutType.desktop; } - if (Layout._isWebDesktop()) { + if (PlatformUtils.isWeb && Layout._isWebDesktop()) { return LayoutType.desktop; } From 63dcfee49a2b86f8c38b114717a69eb600cfb4bb Mon Sep 17 00:00:00 2001 From: Airyzz <36567925+Airyzz@users.noreply.github.com> Date: Sun, 14 Jun 2026 00:10:16 +0000 Subject: [PATCH 3/3] Update layout_config.dart --- commet/lib/config/layout_config.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commet/lib/config/layout_config.dart b/commet/lib/config/layout_config.dart index 2d66d9afc..d674ed46d 100644 --- a/commet/lib/config/layout_config.dart +++ b/commet/lib/config/layout_config.dart @@ -69,7 +69,7 @@ extension LayoutQueryData on MediaQueryData { if (PlatformUtils.isAndroid || PlatformUtils.isWeb) { final bool useMobileLayout = - (size.shortestSide * preferences.appScale.value) < 600; + (size.width * preferences.appScale.value) < 600; if (useMobileLayout) { return LayoutType.mobile; }