From 801f663959189a623abd715f546b3f05b3d1503d Mon Sep 17 00:00:00 2001 From: n9k Date: Wed, 16 Feb 2022 21:34:31 +0000 Subject: [PATCH] Limit info height to max for viewport in mobile view Remove padding around non-tripcode tripcode in the nojs chat form --- .gitignore | 1 + anonstream/static/style.css | 12 +++++++----- anonstream/templates/home.html | 2 +- anonstream/templates/nojs_form.html | 3 +++ anonstream/templates/nojs_info.html | 3 ++- 5 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 408c1f9..829e6cc 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ __pycache__/ stream/ +*~ diff --git a/anonstream/static/style.css b/anonstream/static/style.css index 219ef7b..ffe6105 100644 --- a/anonstream/static/style.css +++ b/anonstream/static/style.css @@ -61,13 +61,15 @@ noscript { } #info_js { overflow-y: auto; - margin: 1ch 1.5ch; + padding: 1ch 1.5ch; + height: 100%; } #info_js__title { font-size: 18pt; + overflow-wrap: anywhere; } #info_nojs { - height: var(--nojs-info-height); + height: 100%; } #chat { @@ -213,6 +215,9 @@ footer { #both:target #info_nojs { height: 9ch; } +#info:target { + grid-row-end: chat-end; +} @media (min-width: 720px) { :root { @@ -241,7 +246,4 @@ footer { border-left: var(--chat-border); min-height: 100%; } - #both:target #info_nojs { - height: var(--nojs-info-height); - } } diff --git a/anonstream/templates/home.html b/anonstream/templates/home.html index e7d67e3..85f2557 100644 --- a/anonstream/templates/home.html +++ b/anonstream/templates/home.html @@ -15,7 +15,7 @@
- +