More work on the menus...

This commit is contained in:
Scott Idem
2025-07-16 14:29:57 -04:00
parent eaffc44772
commit 047f6d7048
4 changed files with 30 additions and 18 deletions

View File

@@ -93,7 +93,6 @@ max-w-max -->
opacity-90
hover:opacity-100
active:opacity-100
w-min
max-w-md
@@ -118,10 +117,10 @@ max-w-max -->
ease-in-out
"
class:top-0={expand && 1 == 3}
class:opacity-100={expand}
class:w-full={expand}
class:hidden={false}
class:border-transparent={!expand}
class:hover:bg-transparent={!expand}
>
@@ -292,7 +291,7 @@ max-w-max -->
// $ae_loc.sys_menu.expand = true;
// $ae_loc.sys_menu.expand_btn = false;
$ae_loc.app_cfg.show_element__access_type = true;
$ae_loc.app_cfg.show_element__passcode_input = true;
$ae_sess.app_cfg.show_element__passcode_input = true;
// await tick();
// console.log('Layout button click: Focus on passcode input!');
@@ -367,7 +366,7 @@ max-w-max -->
// dispatch_edit_mode_changed();
}}
class="
btn btn-sm text-xs
btn btn-base text-sm
preset-tonal-warning
preset-outlined-warning-800-200
hover:preset-tonal-success
@@ -390,12 +389,13 @@ max-w-max -->
// dispatch_edit_mode_changed();
}}
class="
btn btn-sm text-xs
btn btn-base text-sm
preset-tonal-surface
preset-outlined-warning-400-600
hover:preset-tonal-warning
transition-all group
gap-1
min-w-24
"
title="Edit mode is currently disabled. Click to enable."
>
@@ -417,11 +417,12 @@ max-w-max -->
type="button"
class:w-full={expand}
class="
btn btn-sm
btn btn-base text-sm
preset-filled-tertiary-400-600
preset-outlined-tertiary-400-600
hover:preset-filled-success active:preset-filled-success
px-6 py-1
min-w-24
transition-all group
"
title="Show/Hide the system menu"
@@ -433,9 +434,9 @@ max-w-max -->
$ae_loc.app_cfg.show_element__access_type = true;
if ($ae_loc?.access_type == 'anonymous') {
$ae_loc.app_cfg.show_element__passcode_input = true;
$ae_sess.app_cfg.show_element__passcode_input = true;
} else {
$ae_loc.app_cfg.show_element__passcode_input = false;
$ae_sess.app_cfg.show_element__passcode_input = false;
}
// $ae_loc.app_cfg.show_element__passcode_input = true;
await tick();
@@ -580,7 +581,7 @@ max-w-max -->
<Element_access_type
bind:hide={$ae_loc.sys_menu.hide_access_type}
bind:expand={$ae_loc.sys_menu.expand_access_type}
bind:show_passcode_input={$ae_loc.app_cfg.show_element__passcode_input}
bind:show_passcode_input={$ae_sess.app_cfg.show_element__passcode_input}
bind:trigger_clear_access={trigger_clear_access}
/>
{/if}