logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe git clone https://anongit.hacktivis.me/git/pleroma-fe.git/
commit: ae55374841bf0787cc73ff3966d994d79c1ae671
parent 89015521128d1c39d9977a0a9892849c2ad5bd2a
Author: Henry Jameson <me@hjkos.com>
Date:   Thu, 14 Nov 2024 17:26:14 +0200

prevent global override to affecting preview-block

Diffstat:

Msrc/services/style_setter/style_setter.js3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/services/style_setter/style_setter.js b/src/services/style_setter/style_setter.js @@ -219,8 +219,9 @@ export const applyConfig = (input, i18n) => { styleSheet.toString() styleSheet.insertRule(`:root { ${rules} }`, 'index-max') + // TODO find a way to make this not apply to theme previews if (Object.prototype.hasOwnProperty.call(config, 'forcedRoundness')) { - styleSheet.insertRule(` * { + styleSheet.insertRule(` *:not(.preview-block) { --roundness: var(--forcedRoundness) !important; }`, 'index-max') }