From 231d3210cbae7960c2d97a45941f99693e7c4544 Mon Sep 17 00:00:00 2001 From: MaysWind Date: Sun, 10 May 2026 01:06:51 +0800 Subject: [PATCH] improve styling for quick actions --- src/components/mobile/NumberPadSheet.vue | 48 ++++++++++++++---------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/src/components/mobile/NumberPadSheet.vue b/src/components/mobile/NumberPadSheet.vue index 79a0e2a4..59dc999c 100644 --- a/src/components/mobile/NumberPadSheet.vue +++ b/src/components/mobile/NumberPadSheet.vue @@ -18,55 +18,57 @@
- + {{ digits[7] }} - + {{ digits[8] }} - + {{ digits[9] }} - + × - + {{ digits[4] }} - + {{ digits[5] }} - + {{ digits[6] }} - + - + {{ digits[1] }} - + {{ digits[2] }} - + {{ digits[3] }} - + + - + {{ decimalSeparator }} - + {{ `${digits[0]}${digits[0]}` }} - + {{ digits[0] }} - - - - + + + + {{ confirmText }} @@ -512,13 +514,19 @@ watch(() => props.flipNegative, (newValue) => { align-items: center; box-sizing: border-box; user-select: none; - touch-action: none; + touch-action: manipulation; + transition: transform 0.01s ease; } .numpad-button-num { width: calc(80% / 3); } +.numpad-button-num:active, +.numpad-button-function:active { + background-color: var(--f7-button-pressed-bg-color, rgba(var(--f7-theme-color-rgb), 0.15)); +} + .numpad-button-function, .numpad-button-confirm { width: 20%; }