diff --git a/assets/static/css/main.css b/assets/static/css/main.css index 89ed591..4775a2c 100644 --- a/assets/static/css/main.css +++ b/assets/static/css/main.css @@ -425,7 +425,8 @@ th.operations, td.operations { height: 50px; background-color: var(--primary-color); color: #ffffff; - font-size: 1.4rem; + font-size: 1.25rem; + font-weight: bold; padding-left: 8px; width: 300px; display: flex; @@ -738,7 +739,6 @@ th.operations, td.operations { position: fixed; display: none; width: 100vw; - height: 100vh; top: 0; left: 0; right: 0; @@ -779,19 +779,6 @@ th.operations, td.operations { padding-right: 10px; } -#quickbox-footer { - position:fixed; - bottom:0; - background-color: #999999; -} - -#quickbox-content { - height: calc(100vh - var(--quickbox-footer-height) - var(--quickbox-topbar-height)); - overflow: auto; - display: flex; - flex-direction: column-reverse; -} - .quickbox-row { border: 1px solid #cccccc; display: block; @@ -824,6 +811,37 @@ th.operations, td.operations { overflow: hidden; } +.quickbox-row { + margin-top: 4px; + margin-bottom: 4px; + background-color: #fff; +} + +#quickbox-notes div:nth-child(2n+1) { + background-color: #fafafa; +} + +#quickbox-footer { + position:fixed; + bottom:0; + width:100%; +} + +#quickbox-footer > form { + margin:4px; + border-radius: 8px; + border:2px solid #999999; + background-color: #999999; +} + +#quickbox-content { + height: calc(100vh - var(--quickbox-footer-height) - var(--quickbox-topbar-height)); + overflow: auto; + display: flex; + flex-direction: column-reverse; + padding: 4px; +} + #quickbox-content .buttons :first-child { margin-bottom: 4px; } @@ -838,6 +856,11 @@ th.operations, td.operations { padding: 2px; } +#quickbox-footer > form > div { + display:flex; + align-items: center +} + #quickbox-footer:after, #quickbox-footer:before { content: ""; display: table; @@ -846,7 +869,6 @@ th.operations, td.operations { #notesend { width: 50px; - float: right; } #notesend button { @@ -855,24 +877,13 @@ th.operations, td.operations { } #notetext { - padding-right: 4px; - overflow: hidden; - display: block; + padding-left: 2px; + flex-grow: 1; } #notetext textarea { resize: none; - padding: 0px; -} - -.quickbox-row { - margin-top: 4px; - margin-bottom: 4px; - background-color: #fff; -} - -#quickbox-notes div:nth-child(2n+1) { - background-color: #fafafa; + padding: 0; } .hide,.hidden { @@ -914,7 +925,7 @@ dialog::backdrop { } dialog header { - margin-bottom: 20px; + height: 40px; font-weight: bold; } @@ -929,6 +940,14 @@ dialog .content { overflow: auto; } +#dialog-confirm { + min-width: 300px; +} + +dialog.share { + min-width: 400px; +} + /* Small */ @media (max-width: 568px) { body.full { @@ -1024,7 +1043,6 @@ dialog .content { position: fixed; top: 54px; left: calc(100vw - 420px); - height: calc(100vh - 46px); background-color: #fff !important; border: 2px solid var(--primary-color); border-radius: 8px; diff --git a/assets/static/js/main.js b/assets/static/js/main.js index 78cc58f..f6ff5e9 100644 --- a/assets/static/js/main.js +++ b/assets/static/js/main.js @@ -140,13 +140,13 @@ function bm_toggle_quickbox() { } } -function bm_show_confirm(sender, title, message) { - document.querySelector("#dialog-confirm h5").innerHTML = title; - document.querySelector("#dialog-confirm p").innerHTML = message; - document.querySelector("#dialog-confirm").showModal(); +function bm_show_confirm_delete(sender, title, message) { + document.querySelector("#dialog-confirm-delete h5").innerHTML = title; + document.querySelector("#dialog-confirm-delete p").innerHTML = message; + document.querySelector("#dialog-confirm-delete").showModal(); document.getElementById("modal-confirm-ok").addEventListener('click', (event) => { htmx.trigger(sender, 'confirmed', null); - document.querySelector("#dialog-confirm").close(); + document.querySelector("#dialog-confirm-delete").close(); }); } @@ -176,7 +176,7 @@ document.addEventListener("DOMContentLoaded", function(event){ ); */ - document.querySelector('#dialog-confirm').addEventListener('click', (event) => { + document.querySelector('.dialog-confirm').addEventListener('click', (event) => { if (event.target.classList.contains("close-dialog")) { event.target.closest('dialog').close(); } diff --git a/assets/templates/base.tmpl b/assets/templates/base.tmpl index 135941e..0da3731 100644 --- a/assets/templates/base.tmpl +++ b/assets/templates/base.tmpl @@ -46,7 +46,7 @@
-