mirror of
https://github.com/penpot/penpot.git
synced 2026-08-29 16:18:48 +00:00
🐛 Fix disabled numeric input with token applied is broken
This commit is contained in:
parent
47d599fe34
commit
7c601fd3ee
@ -840,7 +840,8 @@
|
|||||||
(mf/with-effect [handle-unmount] handle-unmount)
|
(mf/with-effect [handle-unmount] handle-unmount)
|
||||||
|
|
||||||
[:div {:class [class (stl/css-case :input-wrapper true
|
[:div {:class [class (stl/css-case :input-wrapper true
|
||||||
:resizable (not is-token-applied?))]
|
:resizable (and (not is-token-applied?)
|
||||||
|
(not disabled)))]
|
||||||
:ref wrapper-ref
|
:ref wrapper-ref
|
||||||
:on-pointer-down on-scrub-pointer-down
|
:on-pointer-down on-scrub-pointer-down
|
||||||
:on-pointer-move on-scrub-pointer-move
|
:on-pointer-move on-scrub-pointer-move
|
||||||
|
|||||||
@ -22,9 +22,10 @@
|
|||||||
column-gap: var(--sp-xs);
|
column-gap: var(--sp-xs);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
inline-size: 100%;
|
inline-size: 100%;
|
||||||
|
block-size: var(--token-field-height);
|
||||||
background: var(--token-field-bg-color);
|
background: var(--token-field-bg-color);
|
||||||
border-radius: $br-8;
|
border-radius: $br-8;
|
||||||
padding-inline-end: var(--sp-xs);
|
padding: 0 var(--input-padding-size, var(--sp-s));
|
||||||
outline: $b-1 solid var(--token-field-outline-color);
|
outline: $b-1 solid var(--token-field-outline-color);
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user