stylistic improvements for single-line mentions
This commit is contained in:
parent
394fd462dc
commit
0260693f51
4 changed files with 62 additions and 85 deletions
|
@ -32,6 +32,8 @@
|
||||||
|
|
||||||
& .short,
|
& .short,
|
||||||
& .full {
|
& .full {
|
||||||
|
white-space: nowrap;
|
||||||
|
|
||||||
&::before {
|
&::before {
|
||||||
content: '@';
|
content: '@';
|
||||||
}
|
}
|
||||||
|
|
|
@ -155,32 +155,17 @@ $status-margin: 0.75em;
|
||||||
margin-right: 0.2em;
|
margin-right: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
& .heading-mentions-row,
|
|
||||||
& .heading-reply-row {
|
& .heading-reply-row {
|
||||||
position: relative;
|
position: relative;
|
||||||
align-content: baseline;
|
align-content: baseline;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 18px;
|
line-height: 160%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
}
|
}
|
||||||
|
|
||||||
.reply-to-and-accountname {
|
|
||||||
display: flex;
|
|
||||||
height: 18px;
|
|
||||||
margin-right: 0.5em;
|
|
||||||
max-width: 100%;
|
|
||||||
|
|
||||||
.reply-to-link {
|
|
||||||
white-space: nowrap;
|
|
||||||
word-break: break-word;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
& .reply-to-popover,
|
& .reply-to-popover,
|
||||||
& .reply-to-no-popover {
|
& .reply-to-no-popover {
|
||||||
min-width: 0;
|
min-width: 0;
|
||||||
|
@ -219,6 +204,7 @@ $status-margin: 0.75em;
|
||||||
|
|
||||||
& .mentions,
|
& .mentions,
|
||||||
& .reply-to {
|
& .reply-to {
|
||||||
|
white-space: nowrap;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -228,8 +214,8 @@ $status-margin: 0.75em;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mentions-separator {
|
.mentions-line {
|
||||||
margin-left: 0.4em;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.replies {
|
.replies {
|
||||||
|
|
|
@ -221,13 +221,12 @@
|
||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="heading-reply-row">
|
|
||||||
<div
|
<div
|
||||||
v-if="isReply"
|
class="heading-reply-row"
|
||||||
class="reply-to-and-accountname"
|
v-if="isReply || hasMentionsLine"
|
||||||
>
|
>
|
||||||
<StatusPopover
|
<StatusPopover
|
||||||
v-if="!isPreview"
|
v-if="isReply && !isPreview"
|
||||||
:status-id="status.parent_visible && status.in_reply_to_status_id"
|
:status-id="status.parent_visible && status.in_reply_to_status_id"
|
||||||
class="reply-to-popover"
|
class="reply-to-popover"
|
||||||
style="min-width: 0"
|
style="min-width: 0"
|
||||||
|
@ -252,32 +251,24 @@
|
||||||
</StatusPopover>
|
</StatusPopover>
|
||||||
|
|
||||||
<span
|
<span
|
||||||
v-else
|
v-else-if="isReply"
|
||||||
class="reply-to-no-popover"
|
class="reply-to-no-popover"
|
||||||
>
|
>
|
||||||
<span class="reply-to-text">{{ $t('status.reply_to') }}</span>
|
<span class="reply-to-text">{{ $t('status.reply_to') }}</span>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
<MentionLink
|
<MentionLink
|
||||||
class="mention-link"
|
|
||||||
:content="replyToName"
|
:content="replyToName"
|
||||||
:url="replyProfileLink"
|
:url="replyProfileLink"
|
||||||
:user-id="status.in_reply_to_user_id"
|
:user-id="status.in_reply_to_user_id"
|
||||||
:user-screen-name="status.in_reply_to_screen_name"
|
:user-screen-name="status.in_reply_to_screen_name"
|
||||||
:first-mention="false"
|
:first-mention="false"
|
||||||
/>
|
/>
|
||||||
<span
|
|
||||||
v-if="isReply && hasMentionsLine"
|
|
||||||
class="faint mentions-separator"
|
|
||||||
>
|
|
||||||
-
|
|
||||||
</span>
|
|
||||||
<span
|
<span
|
||||||
v-if="hasMentionsLine"
|
v-if="hasMentionsLine"
|
||||||
>
|
class="mentions"
|
||||||
<span
|
:aria-label="$t('tool_tip.mentions')"
|
||||||
class="button-unstyled mentions"
|
|
||||||
:aria-label="$t('tool_tip.reply')"
|
|
||||||
@click.prevent="gotoOriginal(status.in_reply_to_status_id)"
|
@click.prevent="gotoOriginal(status.in_reply_to_status_id)"
|
||||||
>
|
>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
|
@ -291,11 +282,10 @@
|
||||||
</span>
|
</span>
|
||||||
</span>
|
</span>
|
||||||
<MentionsLine
|
<MentionsLine
|
||||||
|
v-if="hasMentionsLine"
|
||||||
:mentions="mentionsLine"
|
:mentions="mentionsLine"
|
||||||
class="mentions-line"
|
class="mentions-line"
|
||||||
/>
|
/>
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -54,7 +54,6 @@
|
||||||
<MentionsLine
|
<MentionsLine
|
||||||
v-if="!hideFirstMentions"
|
v-if="!hideFirstMentions"
|
||||||
:mentions="mentions"
|
:mentions="mentions"
|
||||||
class="mentions-line"
|
|
||||||
/>
|
/>
|
||||||
</template>
|
</template>
|
||||||
</RichContent>
|
</RichContent>
|
||||||
|
|
Loading…
Reference in a new issue