mirror of
https://github.com/penpot/penpot.git
synced 2026-05-13 03:53:51 +00:00
💄 Add cosmetic changes to measures menu component
This commit is contained in:
parent
810abe6728
commit
f246de82f4
@ -88,16 +88,16 @@
|
||||
selection-parents-ref (mf/use-memo (mf/deps ids) #(refs/parents-by-ids ids))
|
||||
selection-parents (mf/deref selection-parents-ref)
|
||||
|
||||
flex-child? (->> selection-parents (some ctl/flex-layout?))
|
||||
absolute? (ctl/layout-absolute? shape)
|
||||
flex-container? (ctl/flex-layout? shape)
|
||||
flex-auto-width? (ctl/auto-width? shape)
|
||||
flex-fill-width? (ctl/fill-width? shape)
|
||||
flex-child? (->> selection-parents (some ctl/flex-layout?))
|
||||
absolute? (ctl/layout-absolute? shape)
|
||||
flex-container? (ctl/flex-layout? shape)
|
||||
flex-auto-width? (ctl/auto-width? shape)
|
||||
flex-fill-width? (ctl/fill-width? shape)
|
||||
flex-auto-height? (ctl/auto-height? shape)
|
||||
flex-fill-height? (ctl/fill-height? shape)
|
||||
|
||||
disabled-position-x? (and flex-child? (not absolute?))
|
||||
disabled-position-y? (and flex-child? (not absolute?))
|
||||
disabled-position-x? (and flex-child? (not absolute?))
|
||||
disabled-position-y? (and flex-child? (not absolute?))
|
||||
disabled-width-sizing? (and (or flex-child? flex-container?)
|
||||
(or flex-auto-width? flex-fill-width?)
|
||||
(not absolute?))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user