mirror of
https://github.com/NoCrypt/migu.git
synced 2026-04-19 15:42:05 +00:00
fix: remove both curly brackets in variables to avoid confusion
This commit is contained in:
parent
f54e5cb076
commit
963db909d8
2 changed files with 2 additions and 2 deletions
|
|
@ -9,5 +9,5 @@ export const variables = writable(localStorage.getItem('theme') || '')
|
|||
|
||||
variables.subscribe(value => {
|
||||
localStorage.setItem('theme', value)
|
||||
style.textContent = `:root{${value.replaceAll('}', '')}}`
|
||||
style.textContent = `:root{${value.replace(/{|}/g, '')}}`
|
||||
})
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
<label for='disable-sidebar'>{settings.expandingSidebar ? 'On' : 'Off'}</label>
|
||||
</div>
|
||||
</SettingCard>
|
||||
<SettingCard title='CSS Variables' description='Used for custom themes. Can change colors, sizes, spacing and more. Best way to discover variables is to use the built-in devtools via Ctrl+Shift+I or F12.'>
|
||||
<SettingCard title='CSS Variables' description='Used for custom themes. Can change colors, sizes, spacing and more. Supports only variables. Best way to discover variables is to use the built-in devtools via Ctrl+Shift+I or F12.'>
|
||||
<textarea class='form-control w-500 mw-full bg-dark' placeholder='--accent-color: #e5204c;' bind:value={$variables} />
|
||||
</SettingCard>
|
||||
<SettingCard title='Card Type' description='What type of cards to display in menus.'>
|
||||
|
|
|
|||
Loading…
Reference in a new issue