web_lib

Common web application libraries
git clone https://radroots.dev/git/web_lib.git
Log | Files | Refs | LICENSE

commit f817436c64fb841a2c1f2e688a8233f50c968d88
parent 38b495d0d5b8b41386682591766d001c69021821
Author: triesap <137732411+triesap@users.noreply.github.com>
Date:   Sat,  8 Mar 2025 01:06:12 +0000

apps-lib: edit settings view, components

Diffstat:
Mapps-lib/src/lib/components/navigation/page-toolbar.svelte | 2+-
Mapps-lib/src/lib/components/trellis/trellis.svelte | 3+++
Mapps-lib/src/lib/view/settings.svelte | 26+++-----------------------
3 files changed, 7 insertions(+), 24 deletions(-)

diff --git a/apps-lib/src/lib/components/navigation/page-toolbar.svelte b/apps-lib/src/lib/components/navigation/page-toolbar.svelte @@ -15,7 +15,7 @@ </script> <div - class={`flex flex-row min-h-nav_page_toolbar_${$app_lo} h-nav_page_toolbar_${$app_lo} w-full px-6 justify-between items-center`} + class={`flex flex-row min-h-nav_page_toolbar_${$app_lo} h-nav_page_toolbar_${$app_lo} w-full px-6 justify-between items-end`} > <button class={`flex flex-row gap-2 justify-start items-center`} diff --git a/apps-lib/src/lib/components/trellis/trellis.svelte b/apps-lib/src/lib/components/trellis/trellis.svelte @@ -150,3 +150,6 @@ </div> {/if} </div> +<div + class={`hidden group-first:border-t-0 group-first:border-t-line group-first:border-b-0 group-first:border-b-line`} +></div> diff --git a/apps-lib/src/lib/view/settings.svelte b/apps-lib/src/lib/view/settings.svelte @@ -14,6 +14,7 @@ type CallbackPromiseGeneric, type I18nTranslateFunction, type ISelectOption, + type ITrellisKind, type IViewBasis, } from "@radroots/util"; import { onMount } from "svelte"; @@ -23,6 +24,7 @@ ls, }: { basis: IViewBasis<{ + trellis_2?: (ITrellisKind | undefined)[]; lc_color_mode: CallbackPromiseGeneric<ISelectOption<string>>; lc_settings_nostr: CallbackPromise; lc_logout: CallbackPromise; @@ -110,29 +112,7 @@ {ls} basis={{ layer: 1, - list: [ - { - hide_active: true, - touch: { - label: { - left: [ - { - value: `${$ls(`common.logout`)}`, - classes: `capitalize`, - }, - ], - }, - end: { - glyph: { - key: `caret-right`, - }, - }, - callback: async () => { - await basis.lc_logout(); - }, - }, - }, - ], + list: basis.trellis_2, }} /> </LayoutTrellis>