From 11aafbc46f37b7c299a03a421a646cbcab8d5b79 Mon Sep 17 00:00:00 2001 From: Yonle Date: Fri, 21 Jul 2023 10:37:34 +0700 Subject: default css: Set max width for video attachment Signed-off-by: Yonle --- doc/style.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/style.css b/doc/style.css index 7b4839d..ffb14cd 100644 --- a/doc/style.css +++ b/doc/style.css @@ -1,5 +1,5 @@ body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em } -img { max-width: 100% } +.snac-embedded-video, img { max-width: 100% } .snac-origin { font-size: 85% } .snac-score { float: right; font-size: 85% } .snac-top-user { text-align: center; padding-bottom: 2em } -- cgit v1.2.3 From ae1f0ac334e3e978183cf75feaa8bfc2f12df4c5 Mon Sep 17 00:00:00 2001 From: Yonle Date: Sun, 23 Jul 2023 20:31:39 +0700 Subject: default css: handle overflow text Signed-off-by: Yonle --- doc/style.css | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'doc') diff --git a/doc/style.css b/doc/style.css index ffb14cd..822860e 100644 --- a/doc/style.css +++ b/doc/style.css @@ -1,4 +1,5 @@ -body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em } +body { max-width: 48em; margin: auto; line-height: 1.5; padding: 0.8em; word-wrap: break-word; } +pre { overflow-x: scroll; } .snac-embedded-video, img { max-width: 100% } .snac-origin { font-size: 85% } .snac-score { float: right; font-size: 85% } -- cgit v1.2.3