From 4da19070235dd1e8c29cd9871ff508a412315787 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 17 Jun 2025 08:39:25 +0200 Subject: [PATCH 1/2] move i,em --- app/static/css/site.scss | 4 ---- app/static/css/style.css | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/static/css/site.scss b/app/static/css/site.scss index fc487df..3d36e14 100644 --- a/app/static/css/site.scss +++ b/app/static/css/site.scss @@ -52,10 +52,6 @@ html, body { } -i, em { - font-style: italic; -} - header, footer { max-width: 1000px; padding-top: 16px; diff --git a/app/static/css/style.css b/app/static/css/style.css index e772c0a..0ce29e5 100644 --- a/app/static/css/style.css +++ b/app/static/css/style.css @@ -16,6 +16,10 @@ body { outline: none; } +i, em { + font-style: italic; +} + a { color: var(--fg) } From a8d1e68c084c62df9c356c6bc37c69e361662e1d Mon Sep 17 00:00:00 2001 From: j Date: Tue, 17 Jun 2025 08:39:35 +0200 Subject: [PATCH 2/2] only fix links on /m/ --- app/static/js/utils.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/static/js/utils.js b/app/static/js/utils.js index 92d6c80..fdef11b 100644 --- a/app/static/js/utils.js +++ b/app/static/js/utils.js @@ -112,7 +112,10 @@ const clickLink = function(event) { } var href = a.attributes.href.value var prefix = document.location.protocol + '//' + document.location.hostname - if (href.startsWith(prefix)) { + if (pandoraURL && href.startsWith(pandoraURL) { + href = href.slice(pandoraURL.length) + } + if (!pandoraURL && href.startsWith(prefix)) { href = href.slice(prefix.length) } if (href.startsWith('/')) {