improve pinned status display
This commit is contained in:
parent
f0ac677fc8
commit
87afada598
3 changed files with 11 additions and 14 deletions
|
|
@ -31,10 +31,10 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.pin {
|
.pin {
|
||||||
padding: var(--status-margin) var(--status-margin) 0;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
margin-right: 0.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
._misclick-prevention & {
|
._misclick-prevention & {
|
||||||
|
|
|
||||||
|
|
@ -46,16 +46,6 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div
|
|
||||||
v-if="showPinned"
|
|
||||||
class="pin"
|
|
||||||
>
|
|
||||||
<FAIcon
|
|
||||||
icon="thumbtack"
|
|
||||||
class="faint"
|
|
||||||
/>
|
|
||||||
<span class="faint">{{ $t('status.pinned') }}</span>
|
|
||||||
</div>
|
|
||||||
<div
|
<div
|
||||||
v-if="retweet && !noHeading && !inConversation"
|
v-if="retweet && !noHeading && !inConversation"
|
||||||
:class="[repeaterClass, { highlighted: repeaterStyle }]"
|
:class="[repeaterClass, { highlighted: repeaterStyle }]"
|
||||||
|
|
@ -179,6 +169,13 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<span class="heading-right">
|
<span class="heading-right">
|
||||||
|
<span class="pin" v-if="showPinned">
|
||||||
|
<FAIcon
|
||||||
|
icon="thumbtack"
|
||||||
|
class="faint"
|
||||||
|
/>
|
||||||
|
<span class="faint">{{ $t('status.pinned') }}</span>
|
||||||
|
</span>
|
||||||
<router-link
|
<router-link
|
||||||
class="timeago faint"
|
class="timeago faint"
|
||||||
:to="{ name: 'conversation', params: { id: status.id } }"
|
:to="{ name: 'conversation', params: { id: status.id } }"
|
||||||
|
|
|
||||||
|
|
@ -10,9 +10,9 @@
|
||||||
<template #content>
|
<template #content>
|
||||||
<div class="user-list-popover">
|
<div class="user-list-popover">
|
||||||
<template v-if="users.length">
|
<template v-if="users.length">
|
||||||
<a
|
<router-link
|
||||||
v-for="(user) in usersCapped"
|
v-for="(user) in usersCapped"
|
||||||
:href="$router.resolve(generateProfileLink(user)).href"
|
:to="generateProfileLink(user)"
|
||||||
:key="user.id"
|
:key="user.id"
|
||||||
class="user-list-row"
|
class="user-list-row"
|
||||||
>
|
>
|
||||||
|
|
@ -33,7 +33,7 @@
|
||||||
<!-- eslint-enable vue/no-v-html -->
|
<!-- eslint-enable vue/no-v-html -->
|
||||||
<span class="user-list-screen-name">{{ user.screen_name_ui }}</span><UnicodeDomainIndicator :user="user" />
|
<span class="user-list-screen-name">{{ user.screen_name_ui }}</span><UnicodeDomainIndicator :user="user" />
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</router-link>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<FAIcon
|
<FAIcon
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue