refactor: убрать автовыбор продукта, карточки на всю ширину
All checks were successful
Build Docker Image / build (push) Successful in 4m53s

This commit is contained in:
Ruslan Bakiev
2026-01-16 00:02:17 +07:00
parent 25030f0350
commit bab0e9e539
2 changed files with 2 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
<Card <Card
padding="md" padding="md"
interactive interactive
class="cursor-pointer overflow-hidden min-w-36 shrink-0" class="cursor-pointer overflow-hidden"
:class="{ 'bg-base-200': selected }" :class="{ 'bg-base-200': selected }"
@click="$emit('select')" @click="$emit('select')"
> >

View File

@@ -43,7 +43,7 @@
</template> </template>
<template #filters> <template #filters>
<div class="flex gap-3 overflow-x-auto pb-2"> <div class="grid grid-cols-2 sm:grid-cols-3 gap-3">
<HubProductCard <HubProductCard
v-for="product in products" v-for="product in products"
:key="product.uuid" :key="product.uuid"
@@ -225,11 +225,6 @@ try {
products.value = (productsData.value?.getAvailableProducts || []) products.value = (productsData.value?.getAvailableProducts || [])
.filter((p): p is { uuid: string; name: string } => p !== null && !!p.uuid && !!p.name) .filter((p): p is { uuid: string; name: string } => p !== null && !!p.uuid && !!p.name)
.map(p => ({ uuid: p.uuid!, name: p.name! })) .map(p => ({ uuid: p.uuid!, name: p.name! }))
// Auto-select first product
if (products.value.length > 0) {
selectedProductUuid.value = products.value[0].uuid
}
} catch (error) { } catch (error) {
console.error('Error loading hub:', error) console.error('Error loading hub:', error)
} finally { } finally {