Skip to content

Add preview card to public statuses#2268

Closed
mikoim wants to merge 5 commits intomastodon:masterfrom
mikoim:feature-preview-card-on-status
Closed

Add preview card to public statuses#2268
mikoim wants to merge 5 commits intomastodon:masterfrom
mikoim:feature-preview-card-on-status

Conversation

@mikoim
Copy link
Copy Markdown
Contributor

@mikoim mikoim commented Apr 21, 2017

This PR makes preview card displayable in public statuses. It needs to brush up design because I just copied a style from React implement.

demo

@mikoim mikoim force-pushed the feature-preview-card-on-status branch from 299f1ec to b2613ad Compare April 27, 2017 16:43
@mikoim
Copy link
Copy Markdown
Contributor Author

mikoim commented Apr 27, 2017

Could somebody review this PR?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This must be a way lighter color. $color3 maybe?

@mikoim mikoim force-pushed the feature-preview-card-on-status branch from b2613ad to 3118d45 Compare April 28, 2017 18:22
@mikoim
Copy link
Copy Markdown
Contributor Author

mikoim commented Apr 28, 2017

@Gargron thank you, I changed the color.

Imgur

@mikoim mikoim force-pushed the feature-preview-card-on-status branch 2 times, most recently from 1f2b7cf to 2d5c73b Compare May 3, 2017 12:49
@mikoim
Copy link
Copy Markdown
Contributor Author

mikoim commented May 3, 2017

I rebased this branch to fix conflicts. Please review again.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If you like Addressable::URI.parse(url).display_uri.hostname you can correspond to IDNA.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

change to %p.status-card__description

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

change to %strong.status-card__title{ title: card.title }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

change to %span.status-card__host{ style: 'display: block; margin-top: 5px; font-size: 13px' }

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Why use the style attribute instead of the stylesheet?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

change to render 'stream_entries/preview_card', card: card

@mikoim mikoim force-pushed the feature-preview-card-on-status branch from 2d5c73b to 0879607 Compare May 5, 2017 16:58
@mikoim
Copy link
Copy Markdown
Contributor Author

mikoim commented May 5, 2017

@ykzts thank you for your review. I fixed problems.

@mikoim mikoim force-pushed the feature-preview-card-on-status branch from 0879607 to 76316d9 Compare May 9, 2017 12:14
@mikoim
Copy link
Copy Markdown
Contributor Author

mikoim commented May 9, 2017

rebased

@mkljczk
Copy link
Copy Markdown
Contributor

mkljczk commented Jul 19, 2017

will this be merged?

@Gargron Gargron mentioned this pull request Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants