From 8580277a286062ed2351a4f1c9a779dca67a1b4f Mon Sep 17 00:00:00 2001 From: Draconizations Date: Mon, 25 Apr 2022 19:11:48 +0200 Subject: [PATCH] feat: add expanded cards and links as settings --- src/pages/Settings.svelte | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/pages/Settings.svelte b/src/pages/Settings.svelte index 79c73144..0eca7006 100644 --- a/src/pages/Settings.svelte +++ b/src/pages/Settings.svelte @@ -14,7 +14,9 @@ twemoji: false }, accessibility: { - opendyslexic: false + opendyslexic: false, + pagelinks: false, + expandedcards: false } }; @@ -44,7 +46,7 @@

These settings are saved in your localstorage. This means that you have to reapply these every time you visit in a different browser, or clear your browser's cookies.

Appearance


- + Show banners in the background? {settings.appearance.banner_top = !settings.appearance.banner_top; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> If enabled, shows banners from the top of the system, member and group pages. @@ -69,6 +71,14 @@ Use the opendyslexic font? {settings.accessibility.opendyslexic = !settings.accessibility.opendyslexic; localStorage.setItem("pk-settings", JSON.stringify(settings)); toggleOpenDyslexic();}}/> If enabled, uses the opendyslexic font as it's main font. + + Expand cards by default? {settings.accessibility.expandedcards = !settings.accessibility.expandedcards; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> + If enabled, lists will be expanded by default (overrides page links). + + + Use page links instead of cards? {settings.accessibility.pagelinks= !settings.accessibility.pagelinks; localStorage.setItem("pk-settings", JSON.stringify(settings));}}/> + If enabled, the list items will not expand, but instead link to the corresponding page. +