Skip to main content
Question

Fill frame, then truncate text

  • July 8, 2024
  • 1 reply
  • 168 views

Manuel10

Hello folks, on the attached screenshot you can see a navigation element. In this element can be a badge that contains a name. I want the badge to hug the name until the width of the badge exceeds the width of the parent frame. From then on, the text should be truncated.

As far as I know, the text layer should be set to “Fill” and the frame with the background area should be set to “Hug”. But this is not possible. What am I doing wrong?

Bildschirmfoto 2024-07-08 um 10.22.14

This topic has been closed for comments

1 reply

AntoineP
  • Active Member
  • 24 replies
  • July 8, 2024

Hi, look for the option “Truncate text” after a given number of lines in the Type settings modal
image

EDIT: although in your case since you need both Hug and Fill behaviors I’m not sure it’s actually possible without using max-widths that would be hard to specify


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings