Display long title on the top screen


I would like to know how to display using CSS an entire long title at the top of the screen (see screenshot below the title in the green circle).

Is it possible to display it on one or two lines?

Thanks for your help and your ideas

This is strange because I don’t see that in the new app. Is your application the classic one?

Nope it is a new app.

I’ve already applied a custom css code :

#page-root:has(.home-custom-class) span[class*="unified-nav-bar"] {
   white-space: break-spaces !important;

Use this code if you want to be flexible:

#page-root:has(.home-custom-class) span[class*="unified-nav-bar"] {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;  
  white-space: normal;

Thanks @Himaladin

I’ve still a little issue. I’d like to display the whole title and to center it (cf. screenshot below)

Any ideas please ?

You can add the following code: “text-align: center;”

Thanks for your help :pray:t3:
It is perfect to center the text :wink:
Do you know if there is a way to enlarge the box containing the title in order to display the whole text ?

This will affect the siblings. Are you sure?

#page-root:has(.home-custom-class) #nav-root > div > div > div > header, #page-root:has(.home-custom-class) #nav-root > div > div > div > header > div > div {

Thanks @Himaladin
In fact, it is not really good.
I thought that it was possible to enlarge the width of the box containing the title. But probably not :frowning:
Thanks for your help

You should directly use another component by hiding the nav header.

1 Like