From 21ce43b790efce399cf85821b9adbe7a9e1f2402 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Thu, 9 Apr 2026 14:43:58 +0700 Subject: [PATCH] Align catalog parameter layout --- .../catalog/CatalogConfigurator.vue | 111 +++++------------- 1 file changed, 29 insertions(+), 82 deletions(-) diff --git a/app/components/catalog/CatalogConfigurator.vue b/app/components/catalog/CatalogConfigurator.vue index 48e946e..568b71b 100644 --- a/app/components/catalog/CatalogConfigurator.vue +++ b/app/components/catalog/CatalogConfigurator.vue @@ -232,22 +232,6 @@ function visibleFields(group: ProductGroup) { return parameterFields.filter((field) => getAllFieldOptions(group, field.key).length > 1); } -function visibleFieldsByColumn(group: ProductGroup) { - const visibleKeys = new Set(visibleFields(group).map((field) => field.key)); - - const leftColumn = parameterFields.filter((field) => ( - visibleKeys.has(field.key) - && ['widthMm', 'lengthM'].includes(field.key) - )); - - const rightColumn = parameterFields.filter((field) => ( - visibleKeys.has(field.key) - && ['thicknessMicron', 'quantityPerBox', 'sleeveBrand', 'colorTag', 'labelTag'].includes(field.key) - )); - - return { leftColumn, rightColumn }; -} - function requiredKeys(group: ProductGroup) { return visibleFields(group).map((field) => field.key); } @@ -516,74 +500,37 @@ function decrementSelected(group: ProductGroup) {
{{ field.label }}
+{{ field.label }}
-{{ field.label }}
- -