Skip to main content
Solved

Correcting the width of a label in css

  • November 28, 2023
  • 4 replies
  • 124 views

Forum|alt.badge.img

Hello everyone,

We have a label with long text which we want to wrap to a certain width but not to violate the css of other tags. I guess we can go with a overflow-wrap: break-word but not quite sure how we can fix it and which class do we need to change.

Best answer by Erik Brink

You can read more about applying Custom CSS to the Universal GUI here:
https://docs.thinkwisesoftware.com/docs/sf/themes#custom-css-universal

View original
This topic has been closed for comments

4 replies

Erik Brink
Moderator
Forum|alt.badge.img+5
  • Moderator
  • 497 replies
  • December 11, 2023

Hi Slavoljub,

First of, sorry for the late reaction.

Can you give some details about the case you are facing this? What component are we talking about?

A guiding screenshot may be helpfull too.

Best regards,
Erik Brink


Freddy
Forum|alt.badge.img+16
  • Thinkwise Local Partner Brasil
  • 528 replies
  • December 15, 2023
Slavoljub Milojkovic wrote:

Hello everyone,

We have a label with long text which we want to wrap to a certain width but not to violate the css of other tags. I guess we can go with a overflow-wrap: break-word but not quite sure how we can fix it and which class do we need to change.

The data-testid come in handy to really pinpoint your css alterations. 

Basically it says that only for the grid-cell of column activity_title in this case overrule the nowrap on the span with class value_renderer.

[data-testid="grid-cell__activity-title"] .value-renderer {
	white-space: normal !important; 
}

 


Erik Brink
Moderator
Forum|alt.badge.img+5
  • Moderator
  • 497 replies
  • Answer
  • December 19, 2023

You can read more about applying Custom CSS to the Universal GUI here:
https://docs.thinkwisesoftware.com/docs/sf/themes#custom-css-universal


Forum|alt.badge.img

Sorry for my late reply. Thanks for the help, it was helpful!


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