mirror of
https://github.com/9001/copyparty.git
synced 2026-06-21 13:42:29 -06:00
fix thumbnail extension text font and size
This commit is contained in:
parent
a5cf02e8c7
commit
66d4c64fa2
|
|
@ -1,6 +1,7 @@
|
||||||
:root {
|
:root {
|
||||||
color-scheme: dark;
|
color-scheme: dark;
|
||||||
--transparent: transparent;
|
--transparent: transparent;
|
||||||
|
--font-mono: monospace;
|
||||||
|
|
||||||
--grid-sz: 10em;
|
--grid-sz: 10em;
|
||||||
--grid-ln: 3;
|
--grid-ln: 3;
|
||||||
|
|
@ -5429,6 +5430,9 @@ html.f {
|
||||||
margin-right: -.6em;
|
margin-right: -.6em;
|
||||||
border-radius: 0 0 var(--radius) var(--radius);
|
border-radius: 0 0 var(--radius) var(--radius);
|
||||||
}
|
}
|
||||||
|
.th_ext .inner {
|
||||||
|
font-size: .8em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
html.fz {
|
html.fz {
|
||||||
--bg: #2e258c;
|
--bg: #2e258c;
|
||||||
|
|
|
||||||
|
|
@ -6572,8 +6572,8 @@ window.thegrid = (function () {
|
||||||
(isdir ? 'folder' : 'file') + '-icon" color="' +
|
(isdir ? 'folder' : 'file') + '-icon" color="' +
|
||||||
(ext == 'unk' || ext.startsWith('/') ? '#0000' : intToHSL(hashCode(ext))) + '"/></svg>' +
|
(ext == 'unk' || ext.startsWith('/') ? '#0000' : intToHSL(hashCode(ext))) + '"/></svg>' +
|
||||||
(isdir || ext == 'unk' || ext.startsWith('/') ? '' :
|
(isdir || ext == 'unk' || ext.startsWith('/') ? '' :
|
||||||
'<span class="th_ext" style="font-size: ' + (r.sz / 5) +'em; font-size:calc(var(--grid-sz) / 5 * ' +
|
'<span class="th_ext" style="font-size: ' + (r.sz / 5) +'em; font-size:calc((var(--grid-sz) - 2.5em) / 3 * ' +
|
||||||
(ext.length > 3 ? 1 / (3 + ext.length * .4) * 3 : 1) + ')">' + ext + '</span>') +
|
(ext.length > 3 ? 1 / (3 + ext.length * .4) * 3 : 1) + ')"><span class="inner">' + ext + '</span></span>') +
|
||||||
'<img loading="lazy" onload="th_onload(this)" src="' +
|
'<img loading="lazy" onload="th_onload(this)" src="' +
|
||||||
ihref + '" /></div><span class="' + ac + '">' + ao.innerHTML + '</span></a>');
|
ihref + '" /></div><span class="' + ac + '">' + ao.innerHTML + '</span></a>');
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue