From bb0790fd8ce109fe17a081f6fb61f4a86d96b1ad Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Sun, 28 May 2023 09:35:29 +0200 Subject: [PATCH] conjunction links in bookmarks --- style.css | 12 +++++++++++- widgets.sh | 3 ++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/style.css b/style.css index 17b88e4..79ddfe8 100644 --- a/style.css +++ b/style.css @@ -140,13 +140,23 @@ body { } #bookmarks label { - display: block; + display: inline; font-weight: bold; font-size: 1.125em; margin-left: 0; margin-top: .75em; word-break: break-word; } +#bookmarks label:before, +#bookmarks a.conjunct:after { + content: '\0a'; + white-space: pre; +} +#bookmarks label:before { + line-height: 2.5em; + vertical-align: top; +} + /* ====== ADVSEARCH / FILTER PANEL ====== */ diff --git a/widgets.sh b/widgets.sh index 3efb79b..081d20e 100755 --- a/widgets.sh +++ b/widgets.sh @@ -94,12 +94,13 @@ w_bookmarks(){ search="$(UNSTRING "${search}" |URL)"; filter="$(UNSTRING "${filter}" |URL)"; printf ' - [label .link . %s] + [label .link . %s][a .conjunct href="?o=%s&s=%s&f=%s" . +] [a .link target=blank href="/?o=Name&s=%s&f=%s" by Name] [a .link target=blank href="/?o=Date&s=%s&f=%s" by Date] [a .link target=blank href="/?o=Length&s=%s&f=%s" by Length] [a .link target=blank href="/?o=Group&s=%s&f=%s" by Group] ' "$(HTML "$name" |sed 's;,\;;&[wbr];g;')" \ + "$ORDER" "${SEARCH:+${SEARCH}} $search" "${FILTER:+${FILTER}^}$filter" \ "$search" "$filter" "$search" "$filter" \ "$search" "$filter" "$search" "$filter" done -- 2.39.2