diff --git a/web/src/components/buttons/ActionButton.svelte b/web/src/components/buttons/ActionButton.svelte index 022e6784..3c2a4433 100644 --- a/web/src/components/buttons/ActionButton.svelte +++ b/web/src/components/buttons/ActionButton.svelte @@ -3,13 +3,6 @@ export let click = () => { alert('no function assigned') }; - - - diff --git a/web/src/components/buttons/SettingsContextButton.svelte b/web/src/components/buttons/SettingsContextButton.svelte new file mode 100644 index 00000000..a0a29e12 --- /dev/null +++ b/web/src/components/buttons/SettingsContextButton.svelte @@ -0,0 +1,32 @@ + + + diff --git a/web/src/components/buttons/Switcher.svelte b/web/src/components/buttons/Switcher.svelte index 06e794a5..afcfeba3 100644 --- a/web/src/components/buttons/Switcher.svelte +++ b/web/src/components/buttons/Switcher.svelte @@ -1,8 +1,4 @@ - - -
+
@@ -31,7 +27,8 @@ border-radius: 0; } + /* clumsy hack to get rid of double border in a list of switches */ .switcher > :global(:not(.button:first-child)) { - margin-left: -1.5px; /* hack to get rid of double border in a list of switches */ + margin-left: -1.5px; } diff --git a/web/src/components/save/Omnibox.svelte b/web/src/components/save/Omnibox.svelte index 8cebdcad..5686764d 100644 --- a/web/src/components/save/Omnibox.svelte +++ b/web/src/components/save/Omnibox.svelte @@ -12,6 +12,7 @@ import IconMute from "$lib/icons/Mute.svelte"; import IconClipboard from "$lib/icons/Clipboard.svelte"; + import SettingsContextButton from "../buttons/SettingsContextButton.svelte"; let link: string = ""; let isFocused = false; @@ -66,18 +67,18 @@
- - + + auto - - + + audio - - + + mute - + - + paste paste and download diff --git a/web/src/lib/settings.ts b/web/src/lib/settings.ts index cdbf607b..f005ced4 100644 --- a/web/src/lib/settings.ts +++ b/web/src/lib/settings.ts @@ -18,7 +18,7 @@ const writeToStorage = (settings: CobaltSettings) => { const loadFromStorage = () => { const settings = localStorage.getItem('settings'); if (!settings) { - return writeToStorage(defaultSettings); + return defaultSettings; } return JSON.parse(settings) as CobaltSettings; diff --git a/web/src/routes/+layout.svelte b/web/src/routes/+layout.svelte index 7d6ca8a0..34f362b1 100644 --- a/web/src/routes/+layout.svelte +++ b/web/src/routes/+layout.svelte @@ -133,10 +133,14 @@ transform: scale(0.95); } + :global(.button.selected) { + background: var(--secondary); + color: var(--primary); + } + @media (hover: hover) { :global(button:hover) { background-color: var(--button-hover); - z-index: 1; } } diff --git a/web/src/routes/+layout.ts b/web/src/routes/+layout.ts index 189f71e2..ceccaaf6 100644 --- a/web/src/routes/+layout.ts +++ b/web/src/routes/+layout.ts @@ -1 +1,2 @@ export const prerender = true; +export const ssr = false;