#Components acting differently??

33 messages · Page 1 of 1 (latest)

sweet glacier
#

I have a header with buttons with a variant and state. If I change the state on the header section, it works fine, but if I change the state in a different section, it scales the vector on the button weirdly even though it works fine on the original component.

flint marsh
#

Hey @sweet glacier ! Would you mind sharing a link to the file with editing access? I can try looking into it more there

sweet glacier
flint marsh
#

For me importing in .fig files never works for some reason 😢 Could you send a share link?

sweet glacier
#

Sure

#

[zoop]

this what you need or?

flint marsh
#

yeah thank you!

sweet glacier
#

awesome. thanks

#

did you figure it out or go afk lol

flint marsh
#

Hey sorry i had to do something but ill look at it again in some mind!

#

*mins

sweet glacier
#

alrighty, thank you for your help

flint marsh
sweet glacier
#

yeah?

flint marsh
#

basically this setup is making it not work out i think

sweet glacier
#

Hmmm ok

flint marsh
#

I would make the setup a bit different

#

lemme make an example of it real quick!

sweet glacier
#

Alrighty

flint marsh
#

with the setup i did in your file

#

you can ssee on an instance of this component you can change the state and what icon appears

sweet glacier
#

oh! okay

flint marsh
#

and if you want to change the size of something, i would either rather change the icon's size so the rest would need to adjust accordingly, or if i want everything to scale i wouldnt autolayout in the button and just set up a left and right, and bottom and top constrains

#

on the icon

sweet glacier
#

okay, got it

flint marsh
#

or scale actually

sweet glacier
#

thank you so much for your help

flint marsh
#

i added a size one in too! but i just sized the leaf

#

lmk if something doesnt make sense 🙂

sweet glacier
#

thank you!! i really appreciate it

#

definitely ended up learning something haha

#

ok i gotta afk for a little bit but thank you again