diff --git a/assets/static/css/main.css b/assets/static/css/main.css index 398b153..66ea6c4 100644 --- a/assets/static/css/main.css +++ b/assets/static/css/main.css @@ -1136,6 +1136,14 @@ dialog .content h5 { } } +.col.left { + text-align: left; +} + +.col.right { + text-align: right; +} + /* Small */ @media (min-width:577px) and (max-width: 767px) { } @@ -1213,6 +1221,54 @@ dialog .content h5 { .slider.round:before { border-radius: 50%; } + + .col.s1 { + width: 8.33333% + } + + .col.s2 { + width: 16.66666% + } + + .col.s3 { + width: 24.99999% + } + + .col.s4 { + width: 33.33333% + } + + .col.s5 { + width: 41.66666% + } + + .col.s6 { + width: 49.99999% + } + + .col.s7 { + width: 58.33333% + } + + .col.s8 { + width: 66.66666% + } + + .col.s9 { + width: 74.99999% + } + + .col.s10 { + width: 83.33333% + } + + .col.s11 { + width: 91.66666% + } + + .col.s12 { + width: 99.99999% + } } /* Medium */ @@ -1225,13 +1281,11 @@ dialog .content h5 { width: 16.66666% } - .col.m3, - .quarter { + .col.m3 { width: 24.99999% } - .col.m4, - .third { + .col.m4 { width: 33.33333% } @@ -1239,8 +1293,7 @@ dialog .content h5 { width: 41.66666% } - .col.m6, - .half { + .col.m6 { width: 49.99999% } @@ -1248,13 +1301,11 @@ dialog .content h5 { width: 58.33333% } - .col.m8, - .twothird { + .col.m8 { width: 66.66666% } - .col.m9, - .w3-threequarter { + .col.m9 { width: 74.99999% } diff --git a/assets/static/js/main.js b/assets/static/js/main.js index e885101..f10f928 100644 --- a/assets/static/js/main.js +++ b/assets/static/js/main.js @@ -215,7 +215,10 @@ function bm_element_list_undelete(sender, element_name, element_name_remove) { } } -function bm_showMessage() { +function bm_showMessage(msg = "") { + if(msg !== "") { + document.getElementById('message').innerHTML = msg; + } document.getElementById('message').show(); setTimeout(() => { document.getElementById('message').close(); @@ -260,6 +263,16 @@ document.addEventListener("DOMContentLoaded", function(event){ openDialog.remove(); } } + + if (event.target.classList.contains("copy-to-clipboard")) { + let prefix = event.target.dataset.clipboardPrefix; + let text = document.getElementById(event.target.dataset.clipboardFieldId).value; + navigator.clipboard.writeText(prefix + text).then((value) => { + bm_showMessage("
Item sharing url copied to clipboard