From 36a88033f7acc877cfcf65056148881ed491b9de Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Fri, 3 Apr 2026 16:15:46 +0700 Subject: [PATCH] style(catalog): split configurator fields into two columns --- .../catalog/CatalogConfigurator.vue | 114 +++++++++++++----- 1 file changed, 84 insertions(+), 30 deletions(-) diff --git a/app/components/catalog/CatalogConfigurator.vue b/app/components/catalog/CatalogConfigurator.vue index 68c517e..49d5100 100644 --- a/app/components/catalog/CatalogConfigurator.vue +++ b/app/components/catalog/CatalogConfigurator.vue @@ -199,6 +199,22 @@ 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'].includes(field.key) + )); + + return { leftColumn, rightColumn }; +} + function requiredKeys(group: ProductGroup) { return visibleFields(group).map((field) => field.key); } @@ -422,38 +438,76 @@ function decrementSelected(group: ProductGroup) {
{{ field.label }}
+{{ field.label }}
-{{ field.label }}
+ +