-
Notifications
You must be signed in to change notification settings - Fork 189
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
Fixes #2001: Added bottom padding to improve visual break #2130
Conversation
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.
Please check the comment above.
@PedroFonsecaDEV I may have encountered a bug that was giving me trouble, though it may be intentional. That aside, do we still want to put the avatar at the bottom? I think when it is scaled down it will be hard to see and just be noise. I added the line and the "Written by: author" though and copied the colours and border width from the author container on the side, let me know what you think. 84f0283799b5cb18030dff197908838d.mp4As for the aforementioned bug, there is an invisible image at the end of all medium posts. .telescope-post-content img[src*='medium.com/_/stat'] {
width: 1px;
height: 1px;
} If we put a line at the bottom, the gap will appear larger (specifically to medium posts). |
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.
I made some comments.
Regarding the medium ghost image, we can deal with it in a follow-up. Let's keep the scope of this PR.
@@ -302,6 +308,14 @@ const PostComponent = ({ postUrl }: Props) => { | |||
dangerouslySetInnerHTML={{ __html: post.html }} | |||
/> | |||
</div> | |||
<div className={classes.contentFooter}> | |||
<p> | |||
Written by:{' '} |
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.
Let's add the <TelescopeAvatar>
as well.
@@ -302,6 +308,14 @@ const PostComponent = ({ postUrl }: Props) => { | |||
dangerouslySetInnerHTML={{ __html: post.html }} | |||
/> | |||
</div> | |||
<div className={classes.contentFooter}> | |||
<p> | |||
Written by:{' '} |
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.
I'm not sure how I feel about Written by
, we already show the user on the right, why add it again at the bottom? I do think the line is nice though.
What do others think?
What if we try only doing the bar with no extra info about the user or post for now, and iterate on that? That seems to be the general feedback I'm hearing on our call today. |
@rjayroso @humphd I'll stick with the idea I mentioned earlier in the call: Keep the header and add a line like the picture below (+ some margin to the upper post), OR don't need the line anymore because the title+authorInfo will play a role like a line better this case, this not only help 2 separate posts more visible but also we can remove the current author info on right side. That place, instead of author info (which is a waste of space when it's not even visible on mobile/small screen), we can use that space (right) for the share feature in future, or a 'monthly/yearly timeline' (help user browsing old posts by that specific month/year when click on, sth like 'archive' on wordpress sites). |
@PedroFonsecaDEV @huynguyez @chrispinkney, what do you think of the latest deployment? I think for the whole removing the sidebar thing should be done in another issue, lets just get the line and spacing for the visual break. Anyways, should the line be close to the top post, in the middle, or as Huy suggested - closer to the bottom? Also: any comments on making a larger/smaller gap, darker/lighter, thinner/bolder line etc? |
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.
Looks great! Just needs some more margin-top
I think, since the gap between the next post and the end of the current post are noticeably different. If others are fine with it then I don't mind giving an approval!
I'm not sure what a darker/bolder line would look like but I'm curious to try it. Feel free to suggest some css changes I can apply to the deployment via the browser!
* Added bottom padding * Added bottom border and author in the footer of each post * Removed author, kept the line * Added more margin at the top of the line
@chrispinkney done n done! rebased and squashed too |
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.
Issue This PR Addresses
Fixes #2001
Type of Change
Description
I've thought about how to improve the visual break between posts. I've looked at how Instagram separates their infinite timeline of posts and it turns out that they don't (unlike tumblr). I think that the easiest solution would just to simply give it more space, see below:
d5194b2a9b48e9400f05af91ad8f75c2.mp4
From my reasoning, the next post's title looks like a subtitle for the current post is because the spacing is basically equal and the user struggles to identify who the title belongs to. By adding more space between, it'll be easier to see the title belongs to the post below rather than the previous post above.
Let me know if we want a more drastic design change to improve the visual break or if the gap should be shortened or made larger.
How to Test
px
instead ofrem
?)Checklist