mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 09:02:15 -06:00
avoid layout-shift for qr-codes
This commit is contained in:
parent
db069c3d4a
commit
5afb562aa3
|
@ -4673,7 +4673,7 @@ var fileman = (function () {
|
|||
return;
|
||||
}
|
||||
surl = surl.slice(15).trim();
|
||||
var txt = esc(surl) + '<img class="b64" src="' + surl + '?qr" />';
|
||||
var txt = esc(surl) + '<img class="b64" width="100" height="100" src="' + surl + '?qr" />';
|
||||
modal.confirm(txt + L.fs_ok, function() {
|
||||
cliptxt(surl, function () {
|
||||
toast.ok(2, L.clipped);
|
||||
|
|
|
@ -45,7 +45,7 @@ function qr(e) {
|
|||
|
||||
function showqr(href) {
|
||||
var vhref = href.replace('?qr&', '?').replace('?qr', '');
|
||||
modal.alert(esc(vhref) + '<img class="b64" src="' + href + '" />');
|
||||
modal.alert(esc(vhref) + '<img class="b64" width="100" height="100" src="' + href + '" />');
|
||||
}
|
||||
|
||||
(function() {
|
||||
|
|
|
@ -322,6 +322,8 @@ html.y #tth {
|
|||
margin: .1em auto;
|
||||
width: 60%;
|
||||
height: 60%;
|
||||
background: #999;
|
||||
background: rgba(128,128,128,0.2);
|
||||
}
|
||||
#modalb {
|
||||
position: sticky;
|
||||
|
|
Loading…
Reference in a new issue