fix(ui): adjust button width to prevent overflow on min window width
What changed, and why it matters
This commit is a purely cosmetic UI fix. It narrows three buttons on a desktop shopping page so they no longer overflow the window at the application's minimum width. There is no security relevance.
No security action needed. Treat as a normal UI/layout fix.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff changes hardcoded width values for three Flutter buttons (PrimaryButton and two SecondaryButton widgets) in desktop_shopinbit_view.dart: 250→224, 200→196, and 140→118. The change is a layout adjustment to prevent visual overflow at the minimum window width. No logic, input handling, network calls, cryptography, authentication, or permissions are modified.
Changed components
lib/pages_desktop_specific/services/shopin_bit/desktop_shopinbit_view.dartInspect captured patch +3 / −3
diff --git a/lib/pages_desktop_specific/services/shopin_bit/desktop_shopinbit_view.dart b/lib/pages_desktop_specific/services/shopin_bit/desktop_shopinbit_view.dart
index 1f2b62d..85d1a19 100644
--- a/lib/pages_desktop_specific/services/shopin_bit/desktop_shopinbit_view.dart
+++ b/lib/pages_desktop_specific/services/shopin_bit/desktop_shopinbit_view.dart
@@ -240,7 +240,7 @@ class _DesktopServicesViewState extends ConsumerState<DesktopShopInBitView> {
child: Row(
children: [
PrimaryButton(
- width: 250,
+ width: 224,
buttonHeight: ButtonHeight.m,
enabled: true,
label: "Shop with ShopinBit",
@@ -257,7 +257,7 @@ class _DesktopServicesViewState extends ConsumerState<DesktopShopInBitView> {
final count = snapshot.data ?? 0;
return SecondaryButton(
- width: 200,
+ width: 196,
buttonHeight: ButtonHeight.m,
label: count > 0
? "My requests ($count)"
@@ -276,7 +276,7 @@ class _DesktopServicesViewState extends ConsumerState<DesktopShopInBitView> {
),
const SizedBox(width: 16),
SecondaryButton(
- width: 140,
+ width: 118,
buttonHeight: ButtonHeight.m,
label: "Settings",
onPressed: () {
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.