From 8cff4eb9c12a1c27ae8764dfa8c144ccf5ef40f8 Mon Sep 17 00:00:00 2001 From: Til Schmitter Date: Mon, 27 Apr 2026 23:51:00 +0200 Subject: [PATCH] dir class added to list + file list folder:before emoji --- copyparty/httpcli.py | 4 ++-- copyparty/web/browser.css | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index 74540e7c..0e6a95ea 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -7233,12 +7233,12 @@ class HttpCli(object): margin = "DIR" elif add_dk: zs = absreal(fspath) - margin = 'zip' % ( + margin = 'zip' % ( quotep(href), self.gen_fk(2, self.args.dk_salt, zs, 0, 0)[:add_dk], ) else: - margin = 'zip' % ( + margin = 'zip' % ( quotep(href), ) elif fn in hist: diff --git a/copyparty/web/browser.css b/copyparty/web/browser.css index 2ecc0190..7b62b000 100644 --- a/copyparty/web/browser.css +++ b/copyparty/web/browser.css @@ -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);