Altinn / altinn-studio

Next generation open source Altinn platform and applications.
https://docs.altinn.studio
BSD 3-Clause "New" or "Revised" License
109 stars 73 forks source link

Expand text field frame for more space while editing #12992

Open Annikenkbrathen opened 1 week ago

Annikenkbrathen commented 1 week ago

The users experience the text fields in the config panel as clumsy and not suited for longer texts. Few people see/know that they can expand the frame to get a larger field by dragging the corner of the frame. Can we make this more visible, and should we adjust the field size according to different types of texts that are added? For example, should descriptions have a larger field than a label from the start? Or can the field automatically expand when the user writes a certain amount of text? Skjermbilde 2024-06-20 kl  09 05 48 Skjermbilde 2024-06-20 kl  09 06 10

Should we also consider whether the frame should be expandable to take up even more space, opening up as a modal?

wrt95 commented 1 day ago

Make fields auto-expand while writing - useAutoSizeTextarea hook already exists in text-editor, move this to a shared folder, and make it possible to send in a prop for maxHeight.