From bc93363d9a7896b8e961a1bbc56788e711fc8ace Mon Sep 17 00:00:00 2001 From: amrw Date: Sun, 6 Dec 2020 14:19:07 +0100 Subject: [PATCH] Prevent horizontal scrolling on pages with long source URLs --- dist/css/styles.css | 3 +++ views/post.pug | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/dist/css/styles.css b/dist/css/styles.css index cb68165..bfc9fd7 100644 --- a/dist/css/styles.css +++ b/dist/css/styles.css @@ -906,6 +906,9 @@ input[type="submit"]:hover, #post .gallery .item small { font-size: 10px; } +#post .source-url { + overflow: auto; +} /* USER */ #user .entries { float: left; diff --git a/views/post.pug b/views/post.pug index 6dbfdad..094efaf 100644 --- a/views/post.pug +++ b/views/post.pug @@ -106,7 +106,7 @@ html p | source: a(href="" + post.media.embed_src + "", target="_blank") - p #{post.media.embed_src} + p(class="source-url") #{post.media.embed_src} else .video a(href="" + post.media.source + "")