CSS
Y-Scroll just to a component
You need to set a fixed height
Use "..." when the text exceed component width
JS
Ternary If/Else
without "else"
just the "else"
referencies
Rocketseat: https://rocketseat.com.br/
You need to set a fixed height
without "else"
just the "else"
Rocketseat: https://rocketseat.com.br/