From fd407665aaedc1bea44ac34ec1440fa2e9cf8795 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 6 Aug 2018 19:37:07 +0200 Subject: [PATCH] Improved display of title, working tagger --- style.css | 4 +++- view.sh | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index 880b2b8..3430619 100644 --- a/style.css +++ b/style.css @@ -362,9 +362,11 @@ a[href="#advsearch"]:before { /* ### Video View ### */ #view h1 { - margin: 1em .5em; + max-width: 100%; + margin: 1em 0; padding: 0 .5em; font-size: 1.25em; font-weight: bold; + word-break: break-word; text-decoration: none; } diff --git a/view.sh b/view.sh index baaad11..8854c48 100644 --- a/view.sh +++ b/view.sh @@ -33,14 +33,15 @@ printf 'Content-Type: text/html;charset=utf-8\r\n\r\n' [a "javascript:stereoview(360, document.getElementById("mainvideo"));" View 360° Stereoscopic] [video #mainvideo controls="controls" [source src="?a=download" type="video/mp4"]] [span .time %i:%imin] [span .dim %ix%i] %s - ' "$(HTML "${ITEM##*/}")" \ + ' "$(HTML "${ITEM##*/}" |sed -r "$w_ascii"' s;[^0-9a-zA-Z&#];&[wbr];g')" \ "$((length / 60))" "$((length % 60))" "$width" "$height" \ "$(printf '%s\n' "${tags#tags=}" |sed -r "$UNSTRING"' s;^;,;; s;,+;,;g; s;,$;;; :X s;,([^,]+)(,|$); [span .tag\n \1]\2;; tX;' )" printf ' [div #editing - [form method=POST action="?a=multitag"' + [form method=POST action="/?a=multitag" + [hidden "select" "%s"]' "$(HTML "${ITEM}")" [ -d "$_DATA/${ITEM%/*}/.index/" ] && w_tagging printf ' ] -- 2.39.2