Skip to main content

Truncate text: Option to reserve space

  • August 7, 2024
  • 1 reply
  • 44 views

Sam_Henri_Gold

I’ve got this very simple set up of a card component in a carousel. The card label has truncation enabled with max lines set to 2.

Almost all of my cards in the carousel use two lines of text, but one card only needs one line. This results in that one card being shorter than the others:

Normally I’d work around this with some combination of fixed height layers or maybe setting the one card to fill the container’s height, but neither are sustainable. I just want the card label to have up to two lines, but have the option to reserve the space if it doesn’t use all the space.

1 reply

djv
Figmate
  • Community Support
  • August 14, 2024

Hey @Sam_Henri_Gold, thanks for the feedback!

We’ll pass this onto to team for consideration.