-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Bring back multiline comments #1407
Conversation
@rullzer, thanks for your PR! By analyzing the annotation information on this pull request, we identified @MorrisJobke, @nickvergessen and @jancborchardt to be potential reviewers |
Scrollbar on the left would be super weird. |
I mean, the cancel button is there, too. |
@@ -11,7 +11,8 @@ | |||
"backbone/backbone.js", | |||
"es6-promise/dist/es6-promise.js", | |||
"davclient.js/lib/client.js", | |||
"clipboard/dist/clipboard.js" | |||
"clipboard/dist/clipboard.js", | |||
"autosize/dist/autosize.min.js" |
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.
tabs vs spaces
@eppfel well I was following #942 (comment) But feel free to hijack to improve the design :) |
a074da9
to
04b8afc
Compare
04b8afc
to
54613ab
Compare
Okidoki now fully autosizing Review time! |
|
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
54613ab
to
c83b3e6
Compare
Fixed |
Works 👍 |
What I just noticed, when you have leading or trailing newlines/whitespace they are displayed in the comment, until you do a page refresh. |
Yeah lets fix that separatly. |
I will review this - there are only some layout glitches between firefox and Chrome. |
@@ -25,7 +25,7 @@ | |||
|
|||
#commentsTabView .newCommentForm .submit { | |||
position: absolute; | |||
top: 1px; | |||
bottom: 1px; |
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.
With this it looks in Firefox good, but in Chrome not that good. Then I could change this to 5px
to look in Chrome good, but in Firefox not centered. The reason is that the surrounding element (a <form>
) is in Chrome not fitted around the textarrea but a bit longer at the bottom.
@nextcloud/designers Any idea how we could solve this?
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.
This is only 75 px in height in Firefox (and those are the 4 additional pixels that are needed in Chrome) 😞
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.
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.
Maybe @skjnldsv can help with this maybe? 😉
I failed too, for some reason the form height is calculated differently in FF/Chrome and therefore the absolute positioning looks different.
However, now that we want to bring back a dedicated login button in #1641 as the inline one caused confusion and here it looks also weird as soon as the comment is expanded to multiple lines, I thought about changing this form to use a dedicated button too. cc @jancborchardt
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.
@ChristophWurst @MorrisJobke You need to put a display:block on the textarea. :)
It should do the trick and the form should now take the full textarea size.
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.
@ChristophWurst @jancborchardt @nextcloud/designers What you guys think in making something like this. (Very quick mockup) |
0ce6f17
to
dcddd4b
Compare
@Espina2 o wow! I like it! |
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.
👍
Yep makes sense 👍 We should separate the different topics here. |
Always forgot the approval doesn't work on reviews! 😑 LGTM 👍 |
Tested and works 👍 |
@Espina2 very nice! Just two things:
|
@jancborchardt Thanks dude. Yup, we should discuss this in your issue. This is only a quick sketch for showing how can work visually not to much thinking in it. 👍 |
Fixes #942
Before:
After:
Which gives us multiline comments again! Whoohoo.
Only thing that we need to think about is how to handle the scroll bar (move to left?)
CC: @nickvergessen @nextcloud/designers @MorrisJobke