diff --git a/erpnext/public/scss/point-of-sale.scss b/erpnext/public/scss/point-of-sale.scss index 368013ec184..30c3c613712 100644 --- a/erpnext/public/scss/point-of-sale.scss +++ b/erpnext/public/scss/point-of-sale.scss @@ -153,9 +153,11 @@ margin-bottom: 0px; min-height: 8rem; height: 8rem; + overflow: hidden; > img { @extend .image; + width: 100%; } } @@ -395,9 +397,11 @@ border-radius: var(--border-radius-md); color: var(--text-light); margin-right: var(--margin-md); + overflow: hidden; > img { @extend .image; + width: 100%; } } @@ -699,14 +703,16 @@ display: flex; align-items: center; justify-content: center; - width: 11rem; - height: 11rem; + max-width: 11rem; + max-height: 11rem; border-radius: var(--border-radius-md); margin-left: var(--margin-md); color: var(--gray-500); + overflow: hidden; > img { @extend .image; + width: 100%; } > .item-abbr { @@ -1167,6 +1173,16 @@ } } +@media screen and (max-width: 1200px) { + .point-of-sale-app { + > .items-selector { + > .items-container { + grid-template-columns: repeat(3, minmax(0, 1fr)); + } + } + } +} + @media screen and (max-width: 620px) { .point-of-sale-app { grid-template-columns: repeat(1, minmax(0, 1fr)); diff --git a/erpnext/selling/page/point_of_sale/pos_item_selector.js b/erpnext/selling/page/point_of_sale/pos_item_selector.js index 6ae0d675140..b5d90228a2f 100644 --- a/erpnext/selling/page/point_of_sale/pos_item_selector.js +++ b/erpnext/selling/page/point_of_sale/pos_item_selector.js @@ -104,11 +104,11 @@ erpnext.PointOfSale.ItemSelector = class { return `
${qty_to_display}
-
+
${frappe.get_abbr(item.item_name)}
`; } else {