mirror of
https://github.com/9001/copyparty.git
synced 2026-06-18 20:22:27 -06:00
dir class added to list + file list folder:before emoji
This commit is contained in:
parent
ff8b5afa59
commit
8cff4eb9c1
|
|
@ -7233,12 +7233,12 @@ class HttpCli(object):
|
|||
margin = "DIR"
|
||||
elif add_dk:
|
||||
zs = absreal(fspath)
|
||||
margin = '<a href="%s?k=%s&zip=crc" rel="nofollow">zip</a>' % (
|
||||
margin = '<a href="%s?k=%s&zip=crc" rel="nofollow" class="dir">zip</a>' % (
|
||||
quotep(href),
|
||||
self.gen_fk(2, self.args.dk_salt, zs, 0, 0)[:add_dk],
|
||||
)
|
||||
else:
|
||||
margin = '<a href="%s?zip=crc" rel="nofollow">zip</a>' % (
|
||||
margin = '<a href="%s?zip=crc" rel="nofollow" class="dir">zip</a>' % (
|
||||
quotep(href),
|
||||
)
|
||||
elif fn in hist:
|
||||
|
|
|
|||
|
|
@ -750,6 +750,13 @@ a:hover {
|
|||
#files tbody tr:hover td+td {
|
||||
background: color-mix(var(--bg-max) 30%, transparent);
|
||||
}
|
||||
a.dir {
|
||||
color: var(--a);
|
||||
}
|
||||
tr:has(a.dir) td:nth-child(2) a::before {
|
||||
content: "📁";
|
||||
margin: 0 .1em 0 -.2em;
|
||||
}
|
||||
#files thead th {
|
||||
padding: .3em;
|
||||
background: var(--bg);
|
||||
|
|
|
|||
Loading…
Reference in a new issue