Skip to main content
Question

Making a table with separate components, is there a way you can use variables to have the width of {Y} = the width of {X}

  • December 12, 2024
  • 0 replies
  • 20 views

Jake_Brovda

Hey guys, so I’m making an expandable table for game stats for my platform. Each of these stats are broken into 2 segments: total score + each player’s stats. The total score comes with the category label for the stat packed into the initial component and in a separate component for each player’s stats.

I’m trying to have the width of the numbers in the player stats = to the width of the stat category name as each stat can have a different amount of characters. I don’t want to have a set width on the category titles as it would be awkward looking, but I want to have consistent uniform look vertically for each stat’s column.

Here’s an example of what it looks like with the “long title” versus it working with just “ideal title”: Watch Figma Example | Streamable

Sorry, I’ve never posted here before so had to leave the video example as a link above 😃

This topic has been closed for replies.

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