default action improved & configurable

This commit is contained in:
SPRINX0\prochazka
2024-11-26 15:19:39 +01:00
parent 92992d1e95
commit 1ecffeda71
5 changed files with 83 additions and 32 deletions

View File

@@ -130,7 +130,7 @@
changeActiveSubmenu();
}}
>
<a on:click={e => handleClick(e, item)} class:disabled={item.disabled}>
<a on:click={e => handleClick(e, item)} class:disabled={item.disabled} class:bold={item.isBold}>
{item.text || item.label}
{#if item.keyText}
<span class="keyText">{formatKeyText(item.keyText)}</span>
@@ -201,6 +201,10 @@
color: var(--theme-font-3);
}
a.bold {
font-weight: bold;
}
a:hover:not(.disabled) {
background-color: var(--theme-bg-1);
text-decoration: none;