Skip to content

Commit

Permalink
fix the image size on the item drawer (#133)
Browse files Browse the repository at this point in the history
  • Loading branch information
cmintey authored Aug 27, 2024
1 parent a9d404e commit e7a4f74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/wishlists/ItemCard/ItemCard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@
const drawerSettings: DrawerSettings = {
id: "item",
position: "bottom",
height: "max-h-fit",
height: "max-h-screen",
padding: "md:px-12 lg:px-32 xl:px-56",
meta: {
item,
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/wishlists/ItemDrawer.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
const handleApproval: (v: boolean) => void = $drawerStore.meta.handleApproval;
</script>

<div class="flex flex-col space-y-2 p-4 pb-12">
<div class="flex max-h-[80dvh] flex-col space-y-2 p-4 pb-12">
<div class="flex w-full justify-center">
<hr class="self-c !w-12 !rounded !border-t-4" />
</div>
Expand All @@ -25,7 +25,7 @@
</span>
<div class="flex justify-center">
{#if item.imageUrl}
<img class="" alt="product" src={item.imageUrl} />
<img class="max-h-full max-w-[80%] object-contain" alt="product" src={item.imageUrl} />
{/if}
</div>
<div class="flex flex-row space-x-2 text-base md:text-lg">
Expand Down

0 comments on commit e7a4f74

Please sign in to comment.