-
Notifications
You must be signed in to change notification settings - Fork 350
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
Allow code editor to be resized #729
Conversation
Update the code editor components so they can be resized
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.
LGTM. I was really looking forward to having more than one line out of the box when creating new code-snippets.
Two points on this:
|
i used to run into that issue a couple times early on but i have not seen it after the past couple commits to the metadata editor. i tried again now and not reproducing so while it looks like it is no longer happening i can't say for certain this update addressed it.
the min-height is there just so when you open a new editor window you have a box that is clearly visible but if that is not desired it can be removed.
just committed an updated which should also allow the widget itself doesn't scroll. you should now be able to scroll if your window is made small enough |
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.
Just tried this and it worked well for me, good catch! Since we had that bug related to adding a min-height (maybe @karlaspuldaro or @kevin-bates could try it out and see if they get the same bug) it makes me a little nervous to add the min-height (but if you were experiencing that and aren't anymore maybe it's fine). Anyway, I agree with Luciano that it's better with a min-height and if the bug doesn't show up for people that had it before, I think we should keep it in. Thanks!
hmmm, i am not seeing that. which browser are you using? out of curiosity, if you put focus out and then back into the code editor does it re-appear? |
I just checked and it's a bug unique to Safari (it works fine in FF and Chrome) |
Per review comment resize fails on Safari when opening a new editor form
@ajbozarth the resize issue in Safari should be addressed now |
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.
So your recent update has fixed the ability for Safari to resize, but now I'm seeing some new oddities:
-
In Safari when you mouse over the resize corner the mouse pointer is a text cursor (just like the rest of the editor), whereas in chrome and FF its the resize cursor.
-
In FF and Chrome the resize no longer respects the minimum height whereas Safari does, I don't really have an opinion on which is better but they should be consistent with each other.
If these oddities don't seem fixable without hacky code I'm willing to let them go and approve this, but I'd rather see them fixed if there's a clean solution
Update the cursor on Safari when hovering over the resize controller
all set. Safari should no longer display the text cursor. however it default to the regular cursor while Firefox/Chrome display the resize cursor.
when using CSS |
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.
Tried this out in chrome, ff and safari, works great :)
@vabarbosa thanks for the fixes, but now I'm no longer seeing the original feature:
On both Chrome and Safari it always starts at the min height now, no matter the content |
Updated the code editor component in the code snippet sidebar and the code editor component in the metadata editor form
Fixes #728
Before:
After:
Developer's Certificate of Origin 1.1