fix: prevent page jumps due to textarea auto resizing (#7569)

The change prevents unnecessary resizing of the text field.

## Testing

- Compose some text e.g. in an issue
- Enter a lot of lines, until the compose field is as big as possible
- Move the screen up, the top of the compose field should leave the screen, but the last e.g. 5 lines should still be visible on the screen
- Append some text
- Make sure the textfield just gets bigger, but doesn't jump to the bottom of the page

Fixes #7522

Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/7569
Reviewed-by: Earl Warren <earl-warren@noreply.codeberg.org>
Co-authored-by: Beowulf <beowulf@beocode.eu>
Co-committed-by: Beowulf <beowulf@beocode.eu>
This commit is contained in:
Beowulf 2025-10-01 03:47:19 +02:00 committed by Earl Warren
parent dcd431b0d4
commit 1cd0c5e99b
2 changed files with 18 additions and 17 deletions

View file

@ -84,7 +84,7 @@
}
text-expander {
display: block;
display: flex;
position: relative;
}