Skip to main content
Solved

Row height in Form Lists (Universal GUI)

  • August 12, 2024
  • 3 replies
  • 111 views

Harm Horstman
Superhero
Forum|alt.badge.img+21

Has anyone managed to reduce the row height or the distance between records in a formlist?

The field spacing settings in TSF do not seem to have any effect. It may be possible with custom css, but I think a test-data-id is missing to be able to control this properly.

By placing the lines a little closer together, we get more data on the screen and the end users have to scroll less.

 In addition to this, I think it will be possible to adjust the height by adding some lines in custom.css but we mis a data-testid for tsf-emotion-....

 

 

Best answer by Harm Horstman

Erik,

Thanks for your suggestion, we needed a little more css coding to come to the desired result.

 

 

/* -- FORM LIST --  */

.FormList section {
   grid-template-rows: repeat(auto-fill, 25px);
   margin:0px; !important;
}

.FormList section .checkbox__container {
   padding:0px !important;
   width:30px !important;
}

.FormList section span{
   padding-top: 0px !important;
   padding-left: 0px !important;
   width:auto !important;
}

.FormList .scrollbar-container {
   padding-top: 2px !important;
   padding-left: 4px !important;
}

 

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

3 replies

Erik Brink
Moderator
Forum|alt.badge.img+5
  • Moderator
  • 497 replies
  • August 28, 2024

We apply the same spacing to the editors form and the formlist. When other types of (text)editors are used you need that space, but in this case I can imagine that you want more density. There is no setting for this, so custom CSS is the only option.

For now you can write a selector to select all "section” elements and lower down the “grid-template-rows” height. Like this:

.FormList section {

   grid-template-rows: repeat(auto-fill, 40px);

}


Note: you might have to realign the editors in a section because they expect that 47px height. Also, decreasing the template row height might cause some empty space at the bottom of the formlist. 

We hope this helps.


Harm Horstman
Superhero
Forum|alt.badge.img+21
  • Author
  • Superhero
  • 495 replies
  • Answer
  • August 30, 2024

Erik,

Thanks for your suggestion, we needed a little more css coding to come to the desired result.

 

 

/* -- FORM LIST --  */

.FormList section {
   grid-template-rows: repeat(auto-fill, 25px);
   margin:0px; !important;
}

.FormList section .checkbox__container {
   padding:0px !important;
   width:30px !important;
}

.FormList section span{
   padding-top: 0px !important;
   padding-left: 0px !important;
   width:auto !important;
}

.FormList .scrollbar-container {
   padding-top: 2px !important;
   padding-left: 4px !important;
}

 


Erik Brink
Moderator
Forum|alt.badge.img+5
  • Moderator
  • 497 replies
  • September 2, 2024

Great. That looks very nice!


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