Fix a long title in a Figma Auto Layout card

Let a translated title wrap at the card width and keep its button below the text.

Asset preparation2 min read

A card is 280 px wide. “Export” fits, but the translation “Экспортировать все варианты кампании” extends past the right edge or gets clipped. Give the title a width it can wrap inside, then let the card grow vertically.

Give the title the card’s available width

Start with a vertical Auto Layout frame. Put the title and button in it as normal children. Set the card to a fixed width of 280 px and give it 16 px of padding on each side. In the title’s horizontal resizing options, switch from Hug contents to Fill container. With these settings, the title gets 248 px. If it sits inside a nested text frame, make sure that frame also follows the width available in the card. Figma’s responsive card walkthrough.

Let the card grow with its content

Set the title to grow in height as it wraps, and set the card’s height to Hug contents. Keep the button in the vertical layout so the specified gap follows the last line. Turn off truncation or remove the line cap if the complete title is required. Figma Auto Layout guide.

Try both titles at 280 px, then repeat at the narrowest width your card supports. The short title should still use one line, and the long title should show all its words with the button below it. If the text wraps but the button overlaps, inspect the title’s height and whether the button is set to ignore Auto Layout. Once both versions work, check the campaign frame export at its delivery size.

Image tools
All guides
Fix a long title in a Figma Auto Layout card | Formatry Media — Formatry