From 56abd247e1829cb6de82dfcc8ce04deb5f0d1e91 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 13 Aug 2015 01:11:15 +0530 Subject: [PATCH] UX: better twitter onebox in embedded comments --- app/assets/stylesheets/embed.css.scss | 4 ++-- app/views/embed/comments.html.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/embed.css.scss b/app/assets/stylesheets/embed.css.scss index cc4865d7a58..2f6b1ebf962 100644 --- a/app/assets/stylesheets/embed.css.scss +++ b/app/assets/stylesheets/embed.css.scss @@ -5,7 +5,7 @@ @import "./common/foundation/colors"; @import "./common/base/onebox"; -article { +article.post { border-bottom: 1px solid #ddd; &.deleted { @@ -113,7 +113,7 @@ img.emoji { color: #999; } -header { +header.discourse { padding: 10px 10px 20px 10px; font-size: 1.286em; border-bottom: 1px solid #ddd; diff --git a/app/views/embed/comments.html.erb b/app/views/embed/comments.html.erb index 0608da9d644..72974665ff9 100644 --- a/app/views/embed/comments.html.erb +++ b/app/views/embed/comments.html.erb @@ -1,4 +1,4 @@ -
+
<% if @topic_view.topic.posts_count < 2 %> <%= link_to(I18n.t('embed.start_discussion'), @topic_view.topic.url, class: 'button', target: '_blank') %> <% elsif @topic_view.topic.posts_count > 10 %>