From 3e8a7ee3db8a283feecd08331d3163f5bc1f8043 Mon Sep 17 00:00:00 2001 From: Jeppe Bundgaard Date: Mon, 13 Apr 2026 14:28:12 +0200 Subject: [PATCH] Update POS styling and refactor Vue component for consistency: - **CSS Enhancements:** Added `.pos-registration-control` class, improved styling for registration fields, and enhanced responsiveness for `.pos-order-items--order-detail`. - **Vue Refactor:** Standardized imports, object keys, and quotes in `ActionSettingsWheelButton.vue` to align with consistent formatting and readability. --- src/assets/pos.css | 19 + .../buttons/ActionSettingsWheelButton.vue | 858 +++++----- .../department/pos/orders/ordersTable.vue | 1458 ++++++++++------- tests/e2e/admin-pos-orders.spec.ts | 31 +- tests/e2e/support/network.js | 23 +- 5 files changed, 1358 insertions(+), 1031 deletions(-) diff --git a/src/assets/pos.css b/src/assets/pos.css index 858a7e80..1d258a7a 100644 --- a/src/assets/pos.css +++ b/src/assets/pos.css @@ -368,6 +368,12 @@ min-width: 0; } +.pos-registration-control { + width: 100%; + min-width: 0; + margin-bottom: 0; +} + .pos-registration-field { display: flex; flex-direction: column; @@ -542,9 +548,18 @@ .pos-order-items--order-detail .pos-registration-slot { display: flex; + min-width: 0; +} + +.pos-order-items--order-detail .pos-registration-control { + display: flex; + flex: 1 1 0; + width: 100%; + min-width: 0; } .pos-order-items--order-detail .pos-registration-field { + flex: 1 1 0; height: 100%; justify-content: space-between; } @@ -558,6 +573,10 @@ box-shadow: none; } +.pos-order-items--order-detail .pos-registration-field--editing { + width: 100%; +} + .pos-order-items--order-detail .pos-registration-field:hover, .pos-order-items--order-detail .pos-registration-field:focus-visible { transform: none; diff --git a/src/components/displays/buttons/ActionSettingsWheelButton.vue b/src/components/displays/buttons/ActionSettingsWheelButton.vue index 280e6b33..19d66073 100644 --- a/src/components/displays/buttons/ActionSettingsWheelButton.vue +++ b/src/components/displays/buttons/ActionSettingsWheelButton.vue @@ -1,5 +1,5 @@