fix(pos): item selector image border radius
Signed-off-by: Sabu Siyad <hello@ssiyad.com>
This commit is contained in:
parent
b03b568e6c
commit
2f4940cc26
@ -159,6 +159,12 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.item-img {
|
||||||
|
@extend .image;
|
||||||
|
border-radius: 8px 8px 0 0;
|
||||||
|
object-fit: cover;
|
||||||
|
}
|
||||||
|
|
||||||
> .item-detail {
|
> .item-detail {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -103,9 +103,9 @@ erpnext.PointOfSale.ItemSelector = class {
|
|||||||
<div class="flex items-center justify-center h-32 border-b-grey text-6xl text-grey-100">
|
<div class="flex items-center justify-center h-32 border-b-grey text-6xl text-grey-100">
|
||||||
<img
|
<img
|
||||||
onerror="cur_pos.item_selector.handle_broken_image(this)"
|
onerror="cur_pos.item_selector.handle_broken_image(this)"
|
||||||
class="h-full" src="${item_image}"
|
class="h-full item-img" src="${item_image}"
|
||||||
alt="${frappe.get_abbr(item.item_name)}"
|
alt="${frappe.get_abbr(item.item_name)}"
|
||||||
style="object-fit: cover;">
|
>
|
||||||
</div>`;
|
</div>`;
|
||||||
} else {
|
} else {
|
||||||
return `<div class="item-qty-pill">
|
return `<div class="item-qty-pill">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user