diff --git a/public/css/grocy.css b/public/css/grocy.css index 0e0195f9..8c6de2fa 100644 --- a/public/css/grocy.css +++ b/public/css/grocy.css @@ -225,6 +225,42 @@ input::-webkit-inner-spin-button { display: none; } +/* Stock overview table */ + +.table-inline-menu.dropdown-menu { + padding-left: 12px; + padding-right: 12px; + width: 96vw; /* Set width of popup menu to screen size */ +} + + +/* Set width of popup menu to fixed value on larger devices */ +@media (min-width: 400px) { + .table-inline-menu.dropdown-menu { + width: 400px; + } +} + +.table-inline-menu .dropdown-item { + width: auto; + text-indent: -24px; +} + +.table-inline-menu .dropdown-item .dropdown-item-icon { + min-width: 24px; + padding-left:20px; + text-align: center; + display: inline; +} + +.table-inline-menu .dropdown-item .dropdown-item-text { + display: inline; + padding: 0; + word-wrap: break-word; + white-space: pre-wrap; + color: inherit; +} + /* Third party component customizations - Bootstrap */ /* Hide the form validation feedback icons introduced in Bootstrap 4.2.0 - a colored border is enough */ diff --git a/views/batteriesoverview.blade.php b/views/batteriesoverview.blade.php index 4140eff0..05bb46b1 100644 --- a/views/batteriesoverview.blade.php +++ b/views/batteriesoverview.blade.php @@ -66,15 +66,15 @@ - diff --git a/views/choresoverview.blade.php b/views/choresoverview.blade.php index 2b10a3f9..79763f7a 100644 --- a/views/choresoverview.blade.php +++ b/views/choresoverview.blade.php @@ -86,15 +86,15 @@ - diff --git a/views/stockoverview.blade.php b/views/stockoverview.blade.php index 46e189ec..fab96a69 100644 --- a/views/stockoverview.blade.php +++ b/views/stockoverview.blade.php @@ -105,7 +105,7 @@ data-consume-amount="1"> 1 - -