mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
Chore: Miscellaneous UI review changes
- Added bg (variable) to pages, card space separation visible - Removed `show brand line` in settings, shown by default - Re-arranged settings by importance - View toggling primary colour is grey - Only populate recent searches on successful search - Hit only one server side api, once while searching - List view primary button float right - Discounts takes upper limit eg. 10% and below - Navbar icons only wiggle on qty increase in cart/wishlist - Pay button in SO portal - Remove bottom white space below item full page image, min-height fits to content - List view vertical space between heading and item code - Empty offer subtitle handled
This commit is contained in:
@@ -143,7 +143,7 @@ erpnext.ProductGrid = class {
|
||||
|
||||
get_stock_availability(item, settings) {
|
||||
if (settings.show_stock_availability && !item.has_variants && !item.in_stock) {
|
||||
return `<span class="out-of-stock">${ __("Out of stock") }</span>`;
|
||||
return `<span class="out-of-stock mb-2 mt-1">${ __("Out of stock") }</span>`;
|
||||
}
|
||||
return ``;
|
||||
}
|
||||
@@ -161,7 +161,7 @@ erpnext.ProductGrid = class {
|
||||
return `
|
||||
<div id="${ item.name }" class="btn
|
||||
btn-sm btn-primary btn-add-to-cart-list
|
||||
w-100 mt-4 ${ item.in_cart ? 'hidden' : '' }"
|
||||
w-100 mt-2 ${ item.in_cart ? 'hidden' : '' }"
|
||||
data-item-code="${ item.item_code }">
|
||||
<span class="mr-2">
|
||||
<svg class="icon icon-md">
|
||||
|
||||
Reference in New Issue
Block a user