Skip to content

Commit

Permalink
products overflow y scroll
Browse files Browse the repository at this point in the history
  • Loading branch information
michaljaz committed Feb 11, 2024
1 parent 23de446 commit fd2cd5a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion views/vepic.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@
</button>
<% } %>
</div>
<div class="w-full max-w-lg mt-10 flex flex-col gap-5">

<div class="w-full max-w-lg mt-10 flex flex-col gap-5 max-h-[30rem] overflow-y-scroll pr-2">
<% for(let product of shop.products) { %>
<button class="bg-zinc-800 h-30 rounded-3xl p-6 flex gap-4 hover:opacity-[0.7] transition-all duration-200" onclick="setProduct('<%= product.id %>')">
<img src="<%= product.icon %>" class="w-16 h-16 rounded-2xl" />
Expand Down

0 comments on commit fd2cd5a

Please sign in to comment.