diff --git a/changelog/77_UNRELEASED_xxxx-xx-xx.md b/changelog/77_UNRELEASED_xxxx-xx-xx.md index 20666abb..859b3981 100644 --- a/changelog/77_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/77_UNRELEASED_xxxx-xx-xx.md @@ -56,7 +56,10 @@ - Optimized nested modal dialogs: - Nested dialogs are now no longer displayed "in each other" and instead "on top of each other" + - Dialogs can now be closed with the `ESC` key on the keyboard + - There is no longer a close button at the bottom (outside of the displayed `iframe`) and instead one at the top right corner of the dialog - Wide dialogs (e.g. all showing a table, like showing stock entries of a product from the stock overview more/context menu per line) now use the full screen width + - Improved handling of the initial field focus ### API diff --git a/public/css/grocy.css b/public/css/grocy.css index 86a7a8ae..356f0e2d 100755 --- a/public/css/grocy.css +++ b/public/css/grocy.css @@ -120,6 +120,11 @@ input[type='number'] { appearance: textfield; } +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; +} + .sticky-form-footer { border-top: 1px solid #d6d6d6; background-color: white; @@ -275,11 +280,20 @@ a:not([href]) { z-index: 99998; } +/* There is a little too much padding around modals */ +.modal-body { + padding: 0.75rem; +} + @media (min-width: 576px) { .form .modal-dialog { max-width: 650px; } + .wider .modal-dialog { + max-width: 800px; + } + .table .modal-dialog { max-width: 90%; } diff --git a/public/js/grocy.js b/public/js/grocy.js index ec41f9d9..41567e42 100644 --- a/public/js/grocy.js +++ b/public/js/grocy.js @@ -703,6 +703,30 @@ if (Grocy.CalendarFirstDayOfWeek) }); } +if (GetUriParam("embedded")) +{ + $("body").append('