Authored by yyq

fix style

... ... @@ -10,11 +10,13 @@
<p v-if="parentComment.createTime" class="comment-time">{{parentComment.createTime | time}}</p>
<p v-else class="comment-time">刚刚</p>
</div>
<WidgetFav
class="comment-fav"
:comment-id="parentComment.id"
:num="parentComment.praiseTotal"
:option="favOption"></WidgetFav>
<div class="comment-nav-right">
<WidgetFav
class="comment-fav"
:comment-id="parentComment.id"
:num="parentComment.praiseTotal"
:option="favOption"></WidgetFav>
</div>
</div>
<CommentPlaceholder
... ... @@ -161,13 +163,15 @@ export default {
flex: 1;
.comment-user-name {
font-size: 28px;
font-size: 0;
color: #222;
line-height: 40px;
width: 100%;
height: auto;
margin-top: 6px;
.name {
font-size: 28px;
line-height: 40px;
max-width: 300px;
display: inline-block;
overflow: hidden;
... ... @@ -178,15 +182,17 @@ export default {
}
.comment-time {
font-size: 20px;
font-size: 26px;
color: #b0b0b0;
line-height: 28px;
line-height: 36px;
transform: scale(0.8);
transform-origin: left;
}
}
.comment-fav {
.comment-nav-right {
display: flex;
align-items: center;
padding-right: 20px;
}
... ...
... ... @@ -287,6 +287,7 @@ export default {
position: relative;
z-index: 1;
background-color: #fff;
border-bottom: 1px solid #f6f6f6;
}
.article-context {
... ...
... ... @@ -16,6 +16,10 @@ const getDetailShareData = (article) => {
desc = get(blockList.filter(block => block.templateKey === 'text'), '[0].contentData', '');
}
if (shareImage && shareImage.indexOf('//') >= 0) {
shareImage = `${window ? window.location.protocol : ''}//${shareImage.split('//')[1]}`;
}
return {
title: `@${article.authorName} 在有货社区上发了一篇笔记,快点开看看!`,
imgUrl: get(shareImage.split('?'), '[0]') || DEFAULT_SHARE_IMAGE,
... ...