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

Refine files comments design #30412

Closed

Conversation

quentinguidee
Copy link
Member

Motivation

  • Currently, the files > about > comments section margins/paddings are a little bit off (more vertical padding than horizontal, and comments are too much spread.

This PR

  • Fixes the paddings/margins ;
  • Adds a box around the messages making it easier to understand the interface layout quickly ;
  • This is more a side effect than something planned, but the input now have more space, so the text fits better in the input for some screen size.

Screenshots

Before/after Capture d’écran 2021-12-27 à 11 12 32 Capture d’écran 2021-12-27 à 11 13 01
Before/after (video)
Enregistrement.de.l.ecran.2021-12-27.a.11.35.36.mov

Signed-off-by: Quentin Guidée <[email protected]>
Copy link
Member

@marcoambrosini marcoambrosini left a comment

Choose a reason for hiding this comment

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

I really like how it tidies up things, but I would loose the gray background and play with white space instead to separate the elements

@quentinguidee
Copy link
Member Author

I really like how it tidies up things, but I would loose the gray background and play with white space instead to separate the elements

Something like this?

Screenshot image

@jancborchardt
Copy link
Member

jancborchardt commented Dec 27, 2021

I really like how it tidies up things, but I would loose the gray background and play with white space instead to separate the elements

Yup, agree with that. :) Otherwise the box separates the comment body text too much from the commenter and timestamp. Also we never use containers like that either in e.g. Talk.

Also, the indentation of the text is intentional (and as usually chat apps with avatars on the side do it), without that it looks quite crowded.
That way the comment text can also be closer to the line of author/timestamp, where it belongs to, instead of having almost the same distance to that as it has to the next comment.

@quentinguidee
Copy link
Member Author

Also, the indentation of the text is intentional (and as usually chat apps with avatars on the side do it), without that it looks quite crowded. That way the comment text can also be closer to the line of author/timestamp, where it belongs to, instead of having almost the same distance to that as it has to the next comment.

Yeah I recognised that and tried to keep it, but I think we're facing a problem here. If the text is aligned with the username like many apps, I think the message should be placed higher ("in the header") :

image

I think it looks way better like this, but the problem is that NC want 44px height buttons, so the "…" will looks totally off.

@jancborchardt
Copy link
Member

Exactly, that looks great @quentinguidee! :) (Only one thign: No all-caps in the timestamp as per our design ghideliens for readability.)
The 3-dot action could get enough padding and some negative margin to fix that?

@marcoambrosini how do you think we could account for this?

@marcoambrosini
Copy link
Member

I actually think it makes a lot of sense to have the paragraph span the whole width in the sidebar, given the very limited width of the sidebar itself. I've been thinking about doing the same exact thing in talk's chat sidebar. If we do that there's going to be more space for the text anyway and we can afford a little bit more vertical whitespace if separation is still a concern

@skjnldsv skjnldsv added this to the Nextcloud 24 milestone Dec 28, 2021
@jancborchardt
Copy link
Member

I actually think it makes a lot of sense to have the paragraph span the whole width in the sidebar, given the very limited width of the sidebar itself. I've been thinking about doing the same exact thing in talk's chat sidebar. If we do that there's going to be more space for the text anyway and we can afford a little bit more vertical whitespace if separation is still a concern

Not sure about that – I was actually going to say that it would be good if comments and Talk (chat in sidebar) simply uses the same component, but with the indentation, as it is in both Talk and Comments atm. The width is completely fine, it’s a similar form factor as e.g. for document comments in Office.

@skjnldsv skjnldsv mentioned this pull request Mar 24, 2022
@blizzz blizzz mentioned this pull request Mar 31, 2022
This was referenced Apr 7, 2022
@blizzz blizzz modified the milestones: Nextcloud 24, Nextcloud 25 Apr 21, 2022
This was referenced Aug 12, 2022
This was referenced Aug 24, 2022
This was referenced Sep 6, 2022
@skjnldsv skjnldsv mentioned this pull request Sep 15, 2022
This was referenced Sep 20, 2022
@blizzz blizzz modified the milestones: Nextcloud 25, Nextcloud 26 Sep 22, 2022
@jancborchardt
Copy link
Member

@quentinguidee your last version looked really nice, is there a follow-up pull request or how come you closed this one? :)

@quentinguidee
Copy link
Member Author

quentinguidee commented Dec 22, 2022

@quentinguidee your last version looked really nice, is there a follow-up pull request or how come you closed this one? :)

That was not planned as I thought there was not a big interest around this PR, but I'll reopen one.

Edit: #35870

@quentinguidee quentinguidee mentioned this pull request Dec 22, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants