-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Set max text height to prevent overflow #18862
Set max text height to prevent overflow #18862
Conversation
I think this is an issue with the overall page layout where something prevents this dropdown from creating scrollable page overflow. That said, this fix does not seem to work in all cases. I still see dropdown cut off on small vertical viewport. Also I found a potentially related comment here: gitea/web_src/js/features/repo-issue.js Lines 463 to 465 in 2b5e013
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- EasyMDE has it's own options, see https://github.com/Ionaru/easy-markdown-editor , maxHeight , and our code already supports the customized options, grep
createCommentEasyMDE(textarea, easyMDEOptions = {})
, if we set minHeight and maxHeight together, then minHeight works if maxHeight is less.calc(100vh - 920px)
is incorrect. What if100vh=930px
, then minaxHeight=10px?
We should not need to deal with |
GitHub's behavior is indeed better. At that time, Although there might need some more CSS work, making the page can be overflowed correctly could be better. Either is fine to me and I can also accept that we use maxHeight here as a temporary solution as this PR. |
|
Mmm, I see what you mean. I can see it cut off with client height < 400px, which is pretty tiny. Still, I'm not sure how to fix the innate overflow issue and I think this is significantly improved. |
Please send backport. |
* giteaofficial/main: Fix ldap user sync missed email in email_address table (go-gitea#18786) Update assignees check to include any writing team and change org sidebar (go-gitea#18680) Set max text height to prevent overflow (go-gitea#18862) Lock gofumpt to v0.3.0 and run it (go-gitea#18866)
Sets a max height for review text boxes to prevent a very annoying bug where users cannot access the "submit" button. Before: ![image](https://user-images.githubusercontent.com/12700993/155253001-e1dab086-aaf3-4338-889d-6a861728274a.png) After: ![image](https://user-images.githubusercontent.com/12700993/155253144-5b9a3547-9582-412f-867f-41a45a14a0fe.png) Interestingly, I don't see this bug on Firefox. Co-authored-by: Kyle D <[email protected]>
It seems that EasyMDE can not handle I think we had better revert this PR and propose a new proper one. |
The PR to fix it: |
Fix the height problem in #18862 (comment) I have tested this fix. # Screenshots ### Min-height <img width="1138" alt="image" src="https://user-images.githubusercontent.com/2114189/156811831-93d4d31a-1b0a-4c4c-a7b4-fafc706133d6.png"> ### Max-height <img width="1126" alt="image" src="https://user-images.githubusercontent.com/2114189/156811889-10ae41de-c63b-45e7-9d89-21a1ed29e58b.png">
Backport go-gitea#19003 Fix the height problem in go-gitea#18862 (comment)
Backport #19003 Fix the height problem in #18862 (comment) Co-authored-by: wxiaoguang <[email protected]>
Sets a max height for review text boxes to prevent a very annoying bug where users cannot access the "submit" button. Before: ![image](https://user-images.githubusercontent.com/12700993/155253001-e1dab086-aaf3-4338-889d-6a861728274a.png) After: ![image](https://user-images.githubusercontent.com/12700993/155253144-5b9a3547-9582-412f-867f-41a45a14a0fe.png) Interestingly, I don't see this bug on Firefox.
Fix the height problem in go-gitea#18862 (comment) I have tested this fix. # Screenshots ### Min-height <img width="1138" alt="image" src="https://user-images.githubusercontent.com/2114189/156811831-93d4d31a-1b0a-4c4c-a7b4-fafc706133d6.png"> ### Max-height <img width="1126" alt="image" src="https://user-images.githubusercontent.com/2114189/156811889-10ae41de-c63b-45e7-9d89-21a1ed29e58b.png">
Sets a max height for review text boxes to prevent a very annoying bug where users cannot access the "submit" button.
Before:
After:
Interestingly, I don't see this bug on Firefox.