feat: ui improvements, show only active products, limit max page for infinity scroll

This commit is contained in:
2025-08-09 09:49:03 +03:00
parent 7404ecb33e
commit d499d7d846
5 changed files with 17 additions and 7 deletions

View File

@@ -7,8 +7,12 @@
Каталог
</RouterLink>
<RouterLink v-for="category in categoriesStore.topCategories" class="btn btn-md" :to="{name: 'product.categories.show', params: {category_id: category.id}}">
{{ category.name }}
<RouterLink
v-for="category in categoriesStore.topCategories"
class="btn btn-md max-w-[12rem]"
:to="{name: 'product.categories.show', params: {category_id: category.id}}"
>
<span class="overflow-hidden text-ellipsis whitespace-nowrap">{{ category.name }}</span>
</RouterLink>
</div>
</template>

View File

@@ -11,7 +11,7 @@
</div>
</div>
<h3 class="ml-5 text-lg">{{ category.name }}</h3>
<h3 class="ml-5 text-lg line-clamp-2">{{ category.name }}</h3>
</a>
</template>
@@ -24,4 +24,4 @@ const props = defineProps({
});
const emit = defineEmits(["onSelect"]);
</script>
</script>