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: d84c30480bb3f0f2c8087c51f92b74f6e844482c
parent 5bb9ceaf942420ed0bdd3b7680f84e442f9bb362
Author: Henry Jameson <me@hjkos.com>
Date:   Mon, 30 Dec 2024 16:02:37 +0200

don't spam same directives for virtual components

Diffstat:

Msrc/components/button_unstyled.style.js3+--
Msrc/services/theme_data/theme_data_3.service.js4++--
2 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/src/components/button_unstyled.style.js b/src/components/button_unstyled.style.js @@ -10,14 +10,13 @@ export default { }, validInnerComponents: [ 'Text', + 'Link', 'Icon', 'Badge' ], defaultRules: [ { directives: { - background: '#ffffff', - opacity: 0, shadow: [] } }, diff --git a/src/services/theme_data/theme_data_3.service.js b/src/services/theme_data/theme_data_3.service.js @@ -284,8 +284,8 @@ export const init = ({ computed[selector] = computed[selector] || {} computed[selector].computedRule = computedRule computed[selector].dynamicVars = dynamicVars - computed[selector].virtualDirectives = computed[lowerLevelSelector]?.virtualDirectives || {} - computed[selector].virtualDirectivesRaw = computed[lowerLevelSelector]?.virtualDirectivesRaw || {} + computed[selector].virtualDirectives = {} + computed[selector].virtualDirectivesRaw = {} if (virtualComponents.has(combination.component)) { const virtualName = [