gotosocial/web/source/settings/components
ptrcnull 0a32fc0980 [bugfix] prevent clicking Enter in description field from deleting the image (#4436)
# Description

Change the type of "Delete header" / "Delete avatar" button to just "button" to prevent them from getting deleted if user presses Enter in the description field.

Closes https://codeberg.org/superseriousbusiness/gotosocial/issues/4363

## Checklist

Please put an x inside each checkbox to indicate that you've read and followed it: `[ ]` -> `[x]`

If this is a documentation change, only the first checkbox must be filled (you can delete the others if you want).

- [x] I/we have read the [GoToSocial contribution guidelines](https://codeberg.org/superseriousbusiness/gotosocial/src/branch/main/CONTRIBUTING.md).
- [ ] I/we have discussed the proposed changes already, either in an issue on the repository, or in the Matrix chat.
- [x] I/we have not leveraged AI to create the proposed changes.
- [x] I/we have performed a self-review of added code.
- [x] I/we have written code that is legible and maintainable by others.
- [ ] I/we have commented the added code, particularly in hard-to-understand areas.
- [x] I/we have made any necessary changes to documentation.
- [ ] I/we have added tests that cover new code.
- [ ] I/we have run tests and they pass locally with the changes.
- [x] I/we have run `go fmt ./...` and `golangci-lint run`.

Co-authored-by: ptrcnull <git@ptrcnull.me>
Reviewed-on: https://codeberg.org/superseriousbusiness/gotosocial/pulls/4436
Co-authored-by: ptrcnull <ptrcnull@noreply.codeberg.org>
Co-committed-by: ptrcnull <ptrcnull@noreply.codeberg.org>
2025-09-16 14:30:00 +02:00
..
authorization [feature] Application creation + management via API + settings panel (#3906) 2025-03-17 14:06:17 +00:00
form [bugfix] prevent clicking Enter in description field from deleting the image (#4436) 2025-09-16 14:30:00 +02:00
back-button.tsx [chore] Settings refactor 2: the re-refactoring-ing (#2866) 2024-04-25 18:24:24 +02:00
blurhash.tsx [bugfix/frontend] Fix photoswipe layout issues, keyboard shortcuts (#4010) 2025-04-14 15:12:21 +02:00
check-list.tsx [feature] Allow import/export/creation of domain allows via admin panel (#2264) 2023-10-17 12:46:06 +02:00
combo-box.tsx [chore] Settings refactor 2: the re-refactoring-ing (#2866) 2024-04-25 18:24:24 +02:00
error.tsx [feature] Move to code.superseriousbusiness.org 2025-04-26 15:38:43 +02:00
highlightedcode.tsx [feature] Application creation + management via API + settings panel (#3906) 2025-03-17 14:06:17 +00:00
languages.tsx [chore] Settings refactor 2: the re-refactoring-ing (#2866) 2024-04-25 18:24:24 +02:00
loading.tsx [chore] Settings refactor 2: the re-refactoring-ing (#2866) 2024-04-25 18:24:24 +02:00
pageable-list.tsx [feature] Fetch + create domain permissions from subscriptions nightly (#3635) 2025-01-08 11:29:40 +01:00
profile.tsx [feature] Allow user to set "bot" flag; show bot icon on profile (#3135) 2024-07-24 10:40:56 +02:00
status.tsx [chore] Little settings panel report view tweak (#4025) 2025-04-19 13:36:35 +02:00
user-logout-card.tsx [feature] Application creation + management via API + settings panel (#3906) 2025-03-17 14:06:17 +00:00
username-lozenge.tsx [bugfix] Fix a couple accessibility issues with :focus elements (#3979) 2025-04-09 14:14:20 +02:00