Skip to content

Commit

Permalink
Rename side filter id
Browse files Browse the repository at this point in the history
  • Loading branch information
rayc2045 committed May 9, 2024
1 parent 39271e7 commit 30593a8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/pages/shop/shop.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
</div>
<div class="flex gap-x-12">
<aside
id="side-products-filter"
class="block fixed left-0 top-0 w-full max-w-72 h-dvh flex flex-col justify-between bg-gray-100 select-none z-[1]"
style="display: none"
x-show="filter.isShow"
Expand All @@ -46,9 +47,7 @@
@click.outside="filter.hide()"
@resize.window="filter.hide()"
>
<section
class="px-8 py-4 shadow flex justify-between items-center text-gray-500"
>
<section class="px-8 pr-4 py-4 shadow flex justify-between items-center text-gray-500">
<div
x-data="{
get length() {
Expand All @@ -65,16 +64,17 @@
</button>
</section>
<div
id="products-filter≤md"
x-html="component('products-filter')"
class="flex-1 px-8 overflow-y-auto"
></div>
</aside>

<aside
id="products-filter-lg"
x-html="component('products-filter')"
class="hidden lg:block w-48 xl:w-56 select-none"
></aside>

<div class="flex-1">
<ul
id="products"
Expand All @@ -83,9 +83,9 @@
<template x-for="product in shop.filteredProducts" :key="product.name">
<li
x-data="{
lowerName: product.name.toLowerCase().replaceAll(' ', '_'),
currentColor: product.colors[0],
}"
lowerName: product.name.toLowerCase().replaceAll(' ', '_'),
currentColor: product.colors[0],
}"
:class="product.stock !== 'in stock' && 'disabled'"
>
<a
Expand Down

0 comments on commit 30593a8

Please sign in to comment.