0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-04 13:29:14 -05:00

💄 Add cosmetic changes to measures menu component

This commit is contained in:
Andrey Antukh 2023-07-05 12:54:41 +02:00
parent 810abe6728
commit f246de82f4

View file

@ -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?))