Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: limit the size of the resource list viewer #4210

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

RoccoSmit
Copy link
Contributor

As per issue #4209, when the text input area goes off screen (in this case due to a large number of images being uploaded) clicking on the submit button you get taken back to the text input are. this is due to the memoEditor handleEditorFocus triggering.

This PR is to try keep the text input are in focus so that clicking the submit button does not trigger handleEditorFocus

Design decisions:
The max height is the same as the max height for the text area to support large amounts of text

File upload current view
Text input out of focus

File upload pr view
Text input in focus

@RoccoSmit RoccoSmit requested a review from boojack as a code owner December 18, 2024 12:34
Copy link
Collaborator

@johnnyjoygh johnnyjoygh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johnnyjoygh johnnyjoygh changed the title Limit the size of the resource list viewer fix: limit the size of the resource list viewer Dec 19, 2024
@johnnyjoygh johnnyjoygh merged commit ce6ad40 into usememos:main Dec 19, 2024
2 checks passed
@RoccoSmit RoccoSmit deleted the save-in-focus branch December 19, 2024 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants