Skip to main content
Solved

Correcting the width of a label in css

  • Nov 28, 2023 12:55 PM UTC
  • 4 replies
  • 203 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 replies.

4 replies

Erik Brink
Moderator
Forum|alt.badge.img+5
  • Moderator
  • Dec 11, 2023 8:51 AM UTC

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
Thinkwiser
Forum|alt.badge.img+16
  • Thinkwise Local Partner Brasil
  • Dec 15, 2023 12:02 PM UTC

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
  • Answer
  • Dec 19, 2023 8:42 AM UTC

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!