"Lightning Design" theme - growing text

  • 2
  • Problem
  • Updated 3 months ago
  • Solved
  • (Edited)
Text box won't grow to accommodate longer text.  Tried adding responsive grid around field editor (green background) but it still won't grow.

The fields work fine in other themes...


Photo of Allison

Allison

  • 1,158 Points 1k badge 2x thumb

Posted 3 months ago

  • 2
Photo of Craig Rosenbaum

Craig Rosenbaum

  • 4,776 Points 4k badge 2x thumb
I had the same issue. I added some CSS to add a temporary fix.

.nx-field .nx-richtext-input {
    height: auto !important;
}

My field was rich text, but just substitute with the long text area class. 
Photo of Allison

Allison

  • 1,158 Points 1k badge 2x thumb
Sorry to be so dense, but what should I use for the long text area class?
Photo of Craig Rosenbaum

Craig Rosenbaum

  • 4,776 Points 4k badge 2x thumb
For long text area you would use '.nx-field textarea' instead of '.nx-richtext-input'
Photo of Allison

Allison

  • 1,158 Points 1k badge 2x thumb
Thanks.  It's odd because it's doesn't exactly adjust like the rich text does-it just adds an extra line for all fields but still doesn't auto-grow past that. Is this expected for long-text fields?
(Edited)