fix: layout keys

This commit is contained in:
2023-11-01 16:40:18 +01:00
parent 9d33565081
commit a1760d518c
4 changed files with 11 additions and 10 deletions

View File

@@ -35,8 +35,8 @@
font-family={action.icon ? "Material Symbols Rounded" : undefined}
opacity={isActive ? 1 : inactiveOpacity}
style:scale={isActive ? 1 : inactiveScale}
style:translate={isActive ? "0 0" : `${direction[0]}px ${direction[1]}px`}
style:rotate="{rotate}rad"
style:translate={isActive ? "0 0 0" : `${direction[0]}px ${direction[1]}px 0`}
style:rotate="{rotate}deg"
>
{#if action.code !== 0}
{action.icon || action.id || `0x${action.code?.toString(16)}`}
@@ -52,6 +52,7 @@
$transition: 200ms;
text {
will-change: translate, scale;
transform-origin: center;
transform-box: fill-box;
transition: