-
-
Notifications
You must be signed in to change notification settings - Fork 149
Rezise single line list items #2944
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
Conversation
jancborchardt
left a comment
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.
Copying over from Talk:
I’d go with the last one, but with 2 changes:
- The padding to the right is more than top/bottom, especially visible on the 2-line items. That can be reduced to match top/bottom.
- Even though the last one generally has better spacing, I would still go with unified size for notes with only title. Title-only notes are pretty rare (I’d say), so they shouldn’t look out of place.
Good point, makes sense. Just make sure that the right/bottom padding is the exact same as tags look odd otherwise. And if the size is unified anyway, there is no need to move tags to the left of the date for title-only notes, just keep them below the date as well. Maybe even keep the title top-aligned to then match with the date and better communicate that the note is empty. TL;DR I’d keep the exact same layout for title-only notes. |
d577736 to
d1708ed
Compare
kra-mo
left a comment
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.
Ok, the problem I suspected might happen is happening. Empty notes look a bit too… empty right now. Would it be possible to display a placeholder in this case? Just something like "No content". Or if you want to keep it looking somewhat empty, a simple dash (-).
I like the compact layout more, but it's just a tiny bit too tight. Is a value between regular and compact possible? If not, I'd probably go with regular.
Other than these, looks nice overall.
jancborchardt
left a comment
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.
Agree with @kra-mo on the whitespace comment (compact is a bit too tight).
Regarding the emptiness of empty notes, could we vertically center the title of those? That’s commonly done with those classic 2-line elements when there’s no subline.
|
@kra-mo @jancborchardt I changed there padding to
|
|
@jancborchardt also added a 12dp unified version |
I mean that's what was done previously, but it made it less easy to parse to my eyes. @AndyScherzinger iirc we avoid italics for a11y reasons. I think the non-italic "No content" one works well enough here :) |
Yeah, that shifts the layout around too much I feel. |
@kra-mo in practice, I have 0 notes of my 130 which are empty. I’d be curious if having a bunch of empty notes is even something that happens often. But even if: As said we do the same in our normal components that we use e.g. in Contacts, and it looks much cleaner. Also it gives an implicit indicator about "this is empty" rather than an explicit "No content" text. @AndyScherzinger one point on the 12dp unified: Is it possible to only vertically align the title, but keep the date and tag 2 lines on the right? |
|
I am fine with any, just need to know which so we can have it merged. The unified still would need some adjustments, to have things properly aligned (headline start position) and generally the section headers. So whatever variant gets chosen I'll fix these aspects upfront before merging of course 👍 |
I mean sure? But that just sounds more like "this question does not matter". At least I don't see how this validates one approach over another.
My main problem with centering is it very much makes it look like a different type of item, which it is not. We shouldn't forget that this is a smaller representation — a preview — of an existing, actual note, whose layout the centering does not mirror: It goes from top to bottom. In the case of Contacts for example, it is a different representation, one with less info, rather than an extract which ellipsizes. I think Mail would be a much better comparison here as instead of fields and different data points, they both have arbitrarily long text which needs to be trimmed. There, when there is no subject, there is a placeholder "No subject" label as well. |
|
Here is the version @jancborchardt suggests with the right-side meta data being aligned the way it is done on a 2-line item
|
Good point @kra-mo – let’s go with 12dp "No content" then. :) |
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
d1708ed to
cd2ed45
Compare
|
@kra-mo @jancborchardt please re-review, I updated the screenshots in the issue description to reflect the code change, as discussed, see #2944 (comment) @alperozturk96 for technical review (I also did some cleanup for the dimensions and added an editorconfig) |
|
APK file: https://www.kaminsky.me/nc-dev/android-artifacts/2944.apk |







follow-up for #2940 (comment)