M
M
MRcracker2021-02-23 00:02:21
Design
MRcracker, 2021-02-23 00:02:21

How can I make the text area stretch in child components?

Made a product card. Made it a component. When duplicating, the text area is not stretched and when the text is added in two lines, the card is not aligned. Tell me how to fix this?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mamanyanapilas, 2021-02-23
@mamanyanapilas

Watch a free course on Figma by Alexey Bychkov, he has separate videos on the components. He seemed to be talking about it. I do not remember. If there is a solution to this problem in his video, then unsubscribe here.

S
Stepan Voevodin, 2021-03-22
@melpnz

Use Autolayout.
For text in a card: in width, set Fill container
For cards , take both cards in Auto layout and for each of them set vertically:

  • Fill container - align height
  • Hug contents - different height, adapts to the content

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question