Skip to content

Commit

Permalink
Merge pull request #959 from AbleKSaju/feat-gridlist-dmode
Browse files Browse the repository at this point in the history
feat: dark mode for grid view in POS items
  • Loading branch information
akshayitzme authored Sep 28, 2024
2 parents 223fe04 + af4b541 commit 1716e92
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/components/POS/ItemsGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
flex flex-col
gap-4
p-4
border
items-center
mt-4
px-2
Expand All @@ -17,10 +16,16 @@
<!-- Items Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-2 w-full">
<div
class="
border border-gray-300
dark:border-gray-800
p-1
flex flex-col
text-sm text-center
"
@click="handleChange(item as POSItem)"
v-for="item in items as POSItem[]"
:key="item.name"
class="border border-gray-300 p-1 flex flex-col text-sm text-center"
@click="handleChange(item as POSItem)"
>
<div class="self-center w-32 h-32 rounded-lg mb-1">
<div class="relative">
Expand All @@ -38,6 +43,7 @@
h-32
flex
bg-gray-100
dark:bg-gray-850
justify-center
items-center
"
Expand All @@ -58,9 +64,9 @@
</p>
</div>
</div>
<h3 class="text-lg font-medium">{{ item.name }}</h3>
<h3 class="text-lg font-medium dark:text-white">{{ item.name }}</h3>

<p class="text-lg font-medium">
<p class="text-lg font-medium dark:text-white">
{{
item.rate ? fyo.currencySymbols[item.rate.getCurrency()] : undefined
}}
Expand Down

0 comments on commit 1716e92

Please sign in to comment.