From: Paul Hänsch Date: Mon, 6 Aug 2018 17:37:07 +0000 (+0200) Subject: Improved display of title, working tagger X-Git-Url: http://git.plutz.net/?p=serve0;a=commitdiff_plain;h=fd407665aaedc1bea44ac34ec1440fa2e9cf8795 Improved display of title, working tagger --- 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 ' ]