From b0ef917cfca36630ec642d7e8dea41a79f927bab Mon Sep 17 00:00:00 2001 From: lukas Date: Sun, 13 Sep 2026 21:24:23 +0200 Subject: [PATCH] Center the +/- glyphs in the quantity stepper buttons .stepperButton relied on the browser's default button content centering, which the appearance: none reset in the previous commit took away. Explicitly flex-center it (and zero out padding/line-height) across all three copies (MenuItemCustomizer, MenuList, basket). Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01RvYdJ3os7tumimsLdLu2j9 --- src/components/ordering/MenuItemCustomizer.module.scss | 5 +++++ src/components/ordering/MenuList.module.scss | 5 +++++ src/routes/basket.module.scss | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/src/components/ordering/MenuItemCustomizer.module.scss b/src/components/ordering/MenuItemCustomizer.module.scss index 1ba9f85..ed5bdd2 100644 --- a/src/components/ordering/MenuItemCustomizer.module.scss +++ b/src/components/ordering/MenuItemCustomizer.module.scss @@ -57,12 +57,17 @@ } .stepperButton { + display: flex; + align-items: center; + justify-content: center; width: 2rem; height: 2rem; + padding: 0; border-radius: 50%; border: 1px solid $color-border; background: $color-background; color: $color-text; + line-height: 1; cursor: pointer; transition: border-color 0.15s ease; diff --git a/src/components/ordering/MenuList.module.scss b/src/components/ordering/MenuList.module.scss index faf0446..5326165 100644 --- a/src/components/ordering/MenuList.module.scss +++ b/src/components/ordering/MenuList.module.scss @@ -75,12 +75,17 @@ } .stepperButton { + display: flex; + align-items: center; + justify-content: center; width: 2rem; height: 2rem; + padding: 0; border-radius: 50%; border: 1px solid $color-border; background: $color-background; color: $color-text; + line-height: 1; cursor: pointer; align-self: center; justify-self: center; diff --git a/src/routes/basket.module.scss b/src/routes/basket.module.scss index 697cd3a..7145376 100644 --- a/src/routes/basket.module.scss +++ b/src/routes/basket.module.scss @@ -133,12 +133,17 @@ } .stepperButton { + display: flex; + align-items: center; + justify-content: center; width: 2rem; height: 2rem; + padding: 0; border-radius: 50%; border: 1px solid $color-border; background: $color-background; color: $color-text; + line-height: 1; cursor: pointer; align-self: center; justify-self: center;