WIP drawfting
This commit is contained in:
parent
b7c13fd4b4
commit
e426bee80f
|
@ -34,33 +34,15 @@
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!noHeading" class="media-body container media-heading">
|
<div v-if="!noHeading" class="media-body container media-heading">
|
||||||
<div class="media-heading-left">
|
<div class="media-heading-left">
|
||||||
<div class="name-and-links">
|
<div class="name-and-links" style="flex-grow: 1;">
|
||||||
<h4 class="user-name" v-if="status.user.name_html" v-html="status.user.name_html"></h4>
|
<h4 class="user-name" v-if="status.user.name_html" v-html="status.user.name_html"></h4>
|
||||||
<h4 class="user-name" v-else>{{status.user.name}}</h4>
|
<h4 class="user-name" v-else>{{status.user.name}}</h4>
|
||||||
<span class="links">
|
<router-link class="account-name links" :to="userProfileLink">
|
||||||
<router-link :to="userProfileLink">
|
|
||||||
{{status.user.screen_name}}
|
{{status.user.screen_name}}
|
||||||
</router-link>
|
</router-link>
|
||||||
<span v-if="isReply" class="faint reply-info">
|
|
||||||
<i class="icon-right-open"></i>
|
<span style="align-items: baseline; flex-grow: 1; display: flex; justify-content: flex-end;">
|
||||||
<router-link :to="replyProfileLink">
|
<router-link style="whitespace: nowrap; flex-shrink: 0;" class="links timeago" :to="{ name: 'conversation', params: { id: status.id } }">
|
||||||
{{replyToName}}
|
|
||||||
</router-link>
|
|
||||||
</span>
|
|
||||||
<a v-if="isReply && !noReplyLinks" href="#" @click.prevent="gotoOriginal(status.in_reply_to_status_id)" :aria-label="$t('tool_tip.reply')">
|
|
||||||
<i class="button-icon icon-reply" @mouseenter="replyEnter(status.in_reply_to_status_id, $event)" @mouseout="replyLeave()"></i>
|
|
||||||
</a>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<h4 class="replies" v-if="inConversation && !noReplyLinks">
|
|
||||||
<small v-if="replies.length">Replies:</small>
|
|
||||||
<small class="reply-link" v-for="reply in replies">
|
|
||||||
<a href="#" @click.prevent="gotoOriginal(reply.id)" @mouseenter="replyEnter(reply.id, $event)" @mouseout="replyLeave()">{{reply.name}} </a>
|
|
||||||
</small>
|
|
||||||
</h4>
|
|
||||||
</div>
|
|
||||||
<div class="media-heading-right">
|
|
||||||
<router-link class="timeago" :to="{ name: 'conversation', params: { id: status.id } }">
|
|
||||||
<timeago :since="status.created_at" :auto-update="60"></timeago>
|
<timeago :since="status.created_at" :auto-update="60"></timeago>
|
||||||
</router-link>
|
</router-link>
|
||||||
<div class="button-icon visibility-icon" v-if="status.visibility">
|
<div class="button-icon visibility-icon" v-if="status.visibility">
|
||||||
|
@ -75,6 +57,25 @@
|
||||||
</a>
|
</a>
|
||||||
</template>
|
</template>
|
||||||
<a href="#" @click.prevent="toggleMute" v-if="unmuted"><i class="button-icon icon-eye-off"></i></a>
|
<a href="#" @click.prevent="toggleMute" v-if="unmuted"><i class="button-icon icon-eye-off"></i></a>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class="links">
|
||||||
|
<a v-if="isReply && !noReplyLinks" href="#" @click.prevent="gotoOriginal(status.in_reply_to_status_id)" :aria-label="$t('tool_tip.reply')">
|
||||||
|
<i class="button-icon icon-reply" @mouseenter="replyEnter(status.in_reply_to_status_id, $event)" @mouseout="replyLeave()"></i>
|
||||||
|
<span class="faint reply-to-text">Reply to </span>
|
||||||
|
</a>
|
||||||
|
<span v-if="isReply" class="faint">
|
||||||
|
<router-link :to="replyProfileLink">
|
||||||
|
{{replyToName}}
|
||||||
|
</router-link>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<h4 class="replies" v-if="inConversation && !noReplyLinks">
|
||||||
|
<small v-if="replies.length">Replies:</small>
|
||||||
|
<small class="reply-link" v-for="reply in replies">
|
||||||
|
<a href="#" @click.prevent="gotoOriginal(reply.id)" @mouseenter="replyEnter(reply.id, $event)" @mouseout="replyLeave()">{{reply.name}} </a>
|
||||||
|
</small>
|
||||||
|
</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -216,6 +217,23 @@
|
||||||
line-height: 18px;
|
line-height: 18px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-name {
|
||||||
|
white-space: nowrap;
|
||||||
|
font-size: 14px;
|
||||||
|
overflow: hidden;
|
||||||
|
flex-shrink: 0;
|
||||||
|
max-width: 85%;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-right: .2em;
|
||||||
|
|
||||||
|
img {
|
||||||
|
width: 14px;
|
||||||
|
height: 14px;
|
||||||
|
vertical-align: middle;
|
||||||
|
object-fit: contain
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.media-heading-left {
|
.media-heading-left {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
@ -224,29 +242,21 @@
|
||||||
small {
|
small {
|
||||||
font-weight: lighter;
|
font-weight: lighter;
|
||||||
}
|
}
|
||||||
h4 {
|
|
||||||
white-space: nowrap;
|
|
||||||
font-size: 14px;
|
|
||||||
margin-right: 0.25em;
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
}
|
|
||||||
.name-and-links {
|
.name-and-links {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
flex: 1 0;
|
flex: 1 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
|
||||||
align-items: baseline;
|
align-items: baseline;
|
||||||
|
|
||||||
.user-name {
|
.account-name {
|
||||||
margin-right: .45em;
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
img {
|
text-overflow: ellipsis;
|
||||||
width: 14px;
|
|
||||||
height: 14px;
|
|
||||||
vertical-align: middle;
|
|
||||||
object-fit: contain
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.user-name {
|
||||||
|
margin-right: .4em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -263,6 +273,9 @@
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.reply-to-text {
|
||||||
|
margin-right: 0.5em;
|
||||||
|
}
|
||||||
.reply-info {
|
.reply-info {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
@ -399,17 +412,6 @@
|
||||||
align-content: center;
|
align-content: center;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
|
||||||
.user-name {
|
|
||||||
font-weight: bold;
|
|
||||||
|
|
||||||
img {
|
|
||||||
width: 14px;
|
|
||||||
height: 14px;
|
|
||||||
vertical-align: middle;
|
|
||||||
object-fit: contain
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
i {
|
i {
|
||||||
padding: 0 0.2em;
|
padding: 0 0.2em;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue