#Non responsive Frame
293 messages Ā· Page 1 of 1 (latest)
Hey @radiant relic , could you show what you did ? Were you sizing it down so much that there was no space between the two left?
I dont have the perms to send ss for some reason. And no, i dont think that was the case
please get verified in #verification to send images
or files
Oh i got it verified but im off my workplace rn. Ill send it tmrw if u dont mind
hi @spice jungle this is what it looks like
and if i try to stretch it down, this is what happens
is the second one longer than?
you probably have a bottom constrain on the text in that case
longer than wha?
lemme check rq
like the second image has abigger height than the frame on the first one
since you said stretching it down -- wanted to check i thats what you meant
the second image i sent is of lower resolution
oh or are you stretching the text down what you meant
the "Skip for now" has a constraint of "scale" on both x and y axis
i meant i stretched down the whole frame
would it be possible for you to send a video of stretching down?
And what exactly do you want for it to happen? everything to get smaller with it or keeping the same size but moving?
i want it to be responsive. yes, everything to get smaller as i resize down the frame
then technically you would probably want all things to have scale on
oh but yeah with texts that doesnt work that way
u mean the constraints?
yeah
technically speaking, i dont think it works like that when coding it
i guess one question is why are you doing this in a way
so the frame resolution which im working on is for iphone 13 mini. i want the whole ui to be responsive to all iphones. and i just assumed thats how ur supposed to do it?
sorry im just really new to it and the articles and youtube videos on the internet are too vast for me to understand everything precisely
so one thing i would look at is what is the smallest iphone you would wanna support for
and what is the size of that
so lets say iphone 13 mini for now
then second, you likely dont wanna / need to change the size of things but just make sure they keep their space correctly
and for that you just need to use eg autolayout and constrains right
mhm
i personally wouldnt try to resize things
i mean yeah
i used autolayout for "LATECH World's fastest VPN" text and then constraints on all remaining texts and images
or for illustrations, you can resize if you wanna, but most of the things should come from constrains and autolayout most probably
i would use autolayout on most things like the whole frame itself
but constrains could work too
i guess it depends on how you wanna position these things
sorry for late reply, my boss was here
thats what im tryna do
but i guess i got the answer that i needed
oh wow wtf
thats exactly what i needed
thank you sm
i would suggest just trying to learn auto layout and how that works!
is there any article about autolayout and constraints which could be super helpful for someone like me?
its good for responsiveness š
mhm thats my next step i guess
if you learn from more hands on tutorial kind of things, you can try figma's official playground https://www.figma.com/community/file/784448220678228461/figma-auto-layout-playground
for what i sent you i only used auto layout, and no constrains involved
woah
but you probably wanna try learning constrains also and just see how that can help you, sometimes that is more apprpriate to do but not always
mhm
alright sure
@spice jungle so in ur draft, u basically convereted every texts and vectors into frames and used autolayout right?
well texts are still just texts
basically with nested auto layouts you are just grouping things together that should be equal space from each other
from smallest to bigger
so eg you title and subtext are a smaller piece, so thats one auto layout
they are maybe 4px way from each other
but you want the image to be idk 24 px from them but the button is maybe is on the bottom
so then the 2 text autolayout is combined with the image
because thats one distance
and then the button and the text is also another smalller distance so thats another auto layout
but for the second example, i just put the frame with the texts and the image and the frame with the buttons all equal distanced
so i didnt have to put the texts and the image together in a separate auto layout
Wait what?
So according to u
yeah i know you knew it was like that, im just explaining why š
mhmhm i see
so like
i feel like i understood what ur trying to say
so according to u
i can also just make one autolayout for the header and subtext and second autolayout for the ellipse. then the third autolayout for button and text
right?
will that space out the header and subtext and ellipse equally?
okay, so i think you kinda need to just understand what auto layout means, so im gonna try to give an quick explanation
there is a parent frame
and the parent frame has auto layout on it. It has child elements in it that can be anything
text, image, vector, another frame, anything
but whatever you put in the parent frame, those immediate children will be all equally spaced
oh
so, in the first one that you see here
it is
big frame has:
- frame that contains another frame and an image. and the inside frame has 2 texts. I did this because I did not want the header and the subtext and the image to be equally spaced (I put less space between the header and the subtext)
- and another frame that contains a button and the other text
for this one, the big frame has 3 things in it:
-
a frame that has the header and subheader in it
-
the circle
-
and the frame that contains a button and the other text
because I just put equal space between all 3 of these, but wanted smaller space between the header and the text, and the button and the other text
Now, if you want qual space between the header, subheader, and image, you just don't need to put the header and the subheader in a separate frame
There are also other reasons why you might want nested auto layouted frames
but in your particular case here, it is mostly for spacing
i removed the frame and resized it and the output is same as when u put frame for the title and subtext
" I did this because I did not want the header and the subtext and the image to be equally spaced" i quite dont get this. isnt it exactly opposite i.e. u made a frame so that title and subtext could be equally spaced
the left one is where they are not in a frame
you can see that the spacing is different
i added the headr and the subtext in one frame because i wanted it to have smaller space than the subtext and the circle
ehh? š
sorry missed on word from it
nono i understood that u meant frame there but i didnt get the reason
you have 3 things:
header, subtext, circle
I personally wanted the header and the subtext to have eg 4px
and the subtext and circle to have 24px
if I just had all of them in one frame together, then i couldnt have 2 different space
so i put the header and subtext in one frame also, so i could have the gap there to be less
ohhh
now you could ask, why not grouping the subtext and the circle together?
and thats because i see the header and the subtext to be one thing to go together
mhm right
i think i got the hang of it now
does the constraint also get the job done for me for this particular work (given that i wont add or remove any characters in the texts)
for me it feels a bit less convenient to do
you would have to figure out based on what you want things to move
eg everything should shift based on the center point of the overall frame
or the bottom or top distance
oh
and tbh just moving things manually to be in the right spot and right space away is a bit more work than just having auto layout to position things immediately imo
and for it to make sure all your spacings are more correct
so auto layout should be my go to instead of constraints
then whats the use of constraints if auto layout can do what is needed from constraints?
i use it if something should grow in different ways, mostly if growing based on the top and bottom points of a frame
or if you think about pricing containers
sometmes they have like a 30% off little sign
that is justkind of randomly there so for that you would need to make it absolute positioned within an auto layout and probably use constrains
"you would need to make it absolute positioned within an auto layout " whats that?
hhere is one example (same file)
this frame has auto layout on it
but as you can see the red thing is not following it
but it is still in it
you can do that by clicking that thing on the top right
that makes it absolute positioned, basically overriding what auto layout tells it to do
oh ohh
got it
so if im about to make a hero page for tablet iphone and desktop
my first thing to do would be to think of what frames id need in it right?
and then use autolayout in those frames accordingly as per the spacing i need in each components
(and use constraints if i want an absolute position)
or here you can see it is also absolute positioned and has a right constrain
yeah you kinda just wanan figure out the layout structure and spacing stuff
what are the smallest units
and keep going from there
you can find all of these in the file i shared with you if you need to look at any of it
theres also much more to auto layout and reasons why you need to combine things into smaller frames
so i would suggest trying to learn all its features
spacing is just one thing as i mentioned before
alright
and what abt the size? the position stays absolute but what abt the size? does it also remain absolute?
why is it that we prefer from small to larger ones
size depends on your constrains
eg if you do scale, some things might scale
but eg font size wont but the text box itself could
and u mentioned before too to first consider for which smallest device id want the website to run on
so eg auto layout also influences the directions of things inside
lets say you wanna make something like this
and you dont have any auto layout on it yet
and then you put the auto layout on the out most one
it might end up putting everything in a column
all equally spaced
in a column?!
or wrapped, still all equally spaced
because it can either be row, column, or wrap
either way you would need to then select the avatar and the name and then put it in another auto layout and the make it into a row
oh ohh
if it did wrap, then you would have to do that and also change the overall one into a column
and then another autolayout for captions if im correct
no for the caption you dont need a separate one
why not?
this is all
because the overall one already combines the row and the caption together
anyway, if this was even more complex and figma made all of them as wrap or a column or a row when you dont want that
it will be a bit harder to remember to where to fix and how
another thing is that you also probably want to use components often which are smaller units of things
so just in general working from smaller units to bigger is common
i guess i first need to learn more abt the wrap column row hug fill content and all of that
yeah and i mean most of this as you will use, you will see what work best for you
maybe you will wanna start by the outmost one and maybe you will find it annoying too
maybe you wont and find it easier
there is not necessarily a good or bad way to do and you can figure out how to work with it best for you
right.. sure
alright ill work on that then
is there any other advice u could give?
and i would also just suggest looking into components
and component sets probably
which also could show you why going from smaller to bigger makes more sense in some ways
component sets.. u mean frames or am i missing smthg
no those are different things
no
component set is a set of components
a component is a type of frame i guess
eg think of a button. In your app you probably want the buttons to look the same
you dont wanna design it every single time
so you wanna define it as a component so you could just "call" that
and if you change the main component, all its instances would be updated
oh ohhh
because eg lets say you want rounded corners right now, but maybe tomorrow you wont. so without components you would have to change the buttons everywhere one by one
whereas if you defined it in one place, then you could update it immediately
a component set is a bunch of component together where you would wanna switch between them easily or that are kinda similar
right
eg you might have a filled button, but might also have an outlined version
got it
you usually dont wanna use rectangles and groups in ui design
and just wanna do frames
sure ill keep that in mind
@spice jungle so currently im thinking of making a hero page for desktop.
what ive done is made several frames on a parent frame and id add components on each frame accordingly. am i doing it the right way or no?
i cant really tell without seeing what you actually try to make
i wouldnt just make frames and components with no reason
oh
what i thought was
top frame for navigation bar
mid frame for main content
bottom frame for footer maybe
and if i were you i would look into more on what components are exactly
not sure if you understand it exactly yet
i probably dont
sure then
again, just try to work with auto layout and the other things and learning them and see how it works best for you
i might wouldnt do in the same order as you are doing it, but there is no correct way and i think learning by doing it is the best
@spice jungle hi, could u possibly suggest what could be done here to enhance the website
as i said before i would not use groups and rectangles for ui design
what could be done then? im like clueless
just using frames
i looked at some videos which used just rectangle
you should read up on the difference between frames and groups
converting them into frame at the end
rectangle is a vector shape
there are many videos online that are not doing best practices
just because someone is doing it doesnt mean they necessarily using the tool right
fair enough
you can also use autolayout on it etc
again, i would try to read on frames vs groups / rectangles
components
auto layout
and then try using them
okay this might sound dumb but
how about i just convert the rectangle into frame
and then add other elements inside of it
like this
technically that makes it a frame and i can treat it like a frame??
so what does that mean to you that you can treat it like a frame
why are you putting it in like that, why framing those two together
the things inside a group will still be working as something in a group
again, i would suggest reading about the difference between frames and groups and rectangles
alright then, my bad
ill just go thru these articles first
@spice jungle is there any way i can reposition this image without changing the frame size? (i filled the frame with an image)
if you set the fill bg to crop, you can move it
usually though i would just put that in as an image and move it within a frame. I guess it depends on if on the code side you wanna do more of a background fill or more like a positioned image inside.
wait whaa i didnt get the first sentence
sorry meant within a frame
but again, depends on how it is meant to be coded in a way probably also.
ah got it
yeah ill work on that coding side later on
i dont mean that you need to code it, but lots of ways you use figma and design things correlates with code
so when you design, its not just about the visual, but when you put something in certain ways, or if something has multiple ways to do things, one way might be more appropriate than the rest
eg here, you could add in the image 2 ways and move them 2 ways, but one might be more appropriate way of doing it than another depending on use case.
uh huh, i got what u meant. ill try to use the optimal way to do things the best i can š
@spice jungle sorry to keep bothering u but do the layers look good now?
hey @spice jungle quick question. say i want a website that is responsive for all of these devices. does that mean i would have to start designing from the lowest resolution device and work accordingly?