diff --git a/shopping_app/static/css/split/layout.css b/shopping_app/static/css/split/layout.css index 598a441..5693ef0 100644 --- a/shopping_app/static/css/split/layout.css +++ b/shopping_app/static/css/split/layout.css @@ -2111,7 +2111,11 @@ body:not(.sorting-active) .drag-handle { .endpoint-list .shopping-entry-card .shopping-product-input-group > .form-control, .endpoint-list_share .shopping-entry-card .shopping-product-input-group > .form-control, .endpoint-shared_list .shopping-entry-card .shopping-product-input-group > .form-control, -.endpoint-view_list .shopping-entry-card .shopping-product-input-group > .form-control { +.endpoint-view_list .shopping-entry-card .shopping-product-input-group > .form-control, +.endpoint-list .shopping-entry-card .shopping-product-input-group > .form-select, +.endpoint-list_share .shopping-entry-card .shopping-product-input-group > .form-select, +.endpoint-shared_list .shopping-entry-card .shopping-product-input-group > .form-select, +.endpoint-view_list .shopping-entry-card .shopping-product-input-group > .form-select { border-color: rgba(25, 135, 84, 0.55) !important; background: rgba(17, 24, 39, 0.95) !important; } @@ -2123,10 +2127,14 @@ body:not(.sorting-active) .drag-handle { color: rgba(255, 255, 255, 0.62); } -.endpoint-list .shopping-entry-card .shopping-product-input-group > .shopping-product-name-input:focus, -.endpoint-list_share .shopping-entry-card .shopping-product-input-group > .shopping-product-name-input:focus, -.endpoint-shared_list .shopping-entry-card .shopping-product-input-group > .shopping-product-name-input:focus, -.endpoint-view_list .shopping-entry-card .shopping-product-input-group > .shopping-product-name-input:focus { +.endpoint-list .shopping-entry-card .shopping-product-input-group > .form-control:focus, +.endpoint-list_share .shopping-entry-card .shopping-product-input-group > .form-control:focus, +.endpoint-shared_list .shopping-entry-card .shopping-product-input-group > .form-control:focus, +.endpoint-view_list .shopping-entry-card .shopping-product-input-group > .form-control:focus, +.endpoint-list .shopping-entry-card .shopping-product-input-group > .form-select:focus, +.endpoint-list_share .shopping-entry-card .shopping-product-input-group > .form-select:focus, +.endpoint-shared_list .shopping-entry-card .shopping-product-input-group > .form-select:focus, +.endpoint-view_list .shopping-entry-card .shopping-product-input-group > .form-select:focus { box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.25), 0 0 0 .2rem rgba(25, 135, 84, 0.18); } diff --git a/shopping_app/static/js/functions.js b/shopping_app/static/js/functions.js index a9dbc72..1aac9d1 100644 --- a/shopping_app/static/js/functions.js +++ b/shopping_app/static/js/functions.js @@ -169,17 +169,6 @@ function openEditItemModal(event, id, oldName, oldQuantity, oldUnit = 'szt') { }, 150); } -function openQuantityModal(event, id, oldName, oldQuantity, oldUnit = 'szt') { - openEditItemModal(event, id, oldName, oldQuantity, oldUnit); - setTimeout(() => { - const quantityInput = document.getElementById('editItemQuantity'); - if (quantityInput) { - quantityInput.focus(); - quantityInput.select(); - } - }, 200); -} - function submitExpense(listId) { const amountInput = document.getElementById('expenseAmount'); const amount = parseFloat(amountInput.value); @@ -453,7 +442,6 @@ function renderItem(item, isShare = window.IS_SHARE, optionsOrShowEditOnly = fal : ''; const iconBtn = 'btn btn-outline-light btn-sm shopping-action-btn'; - const quantityBtn = 'btn btn-outline-light btn-sm shopping-action-btn'; const wideBtn = 'btn btn-outline-light btn-sm shopping-action-btn shopping-action-btn--wide'; const itemNameHtml = canEditListItem ? ` `; } @@ -490,7 +477,6 @@ function renderItem(item, isShare = window.IS_SHARE, optionsOrShowEditOnly = fal if (temporaryShareUndo) { actionButtons += ` - `; } else if (canShowShareActions || (!isShare && isOwner)) { diff --git a/shopping_app/templates/list.html b/shopping_app/templates/list.html index cd89b56..140c3f8 100644 --- a/shopping_app/templates/list.html +++ b/shopping_app/templates/list.html @@ -148,9 +148,6 @@