diff options
| author | Shpuld Shpludson <shp@cock.li> | 2020-07-05 06:15:35 +0000 |
|---|---|---|
| committer | Shpuld Shpludson <shp@cock.li> | 2020-07-05 06:15:35 +0000 |
| commit | acc3b083aa46aa9c165578380b16ef86e6fb596b (patch) | |
| tree | e0e6ae9f93ead317bd96db22253088735a2d1449 /src/components/status/status.vue | |
| parent | 5b8875e3d88370388653a3165cb2dd4c4fb7cde8 (diff) | |
| parent | 3a79918b89fa41f8676e7f19862e6e29abd4ea14 (diff) | |
Merge branch 'feat/parent-visible-support' into 'develop'
#874 Add strike-through to "Reply to" when parent_visible is set to false
See merge request pleroma/pleroma-fe!1162
Diffstat (limited to 'src/components/status/status.vue')
| -rw-r--r-- | src/components/status/status.vue | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/components/status/status.vue b/src/components/status/status.vue index 7ec29b28..8237be6c 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -197,7 +197,7 @@ > <StatusPopover v-if="!isPreview" - :status-id="status.in_reply_to_status_id" + :status-id="status.parent_visible && status.in_reply_to_status_id" class="reply-to-popover" style="min-width: 0" > @@ -208,7 +208,12 @@ @click.prevent="gotoOriginal(status.in_reply_to_status_id)" > <i class="button-icon icon-reply" /> - <span class="faint-link reply-to-text">{{ $t('status.reply_to') }}</span> + <span + class="faint-link reply-to-text" + :class="{ 'strikethrough': !status.parent_visible }" + > + {{ $t('status.reply_to') }} + </span> </a> </StatusPopover> <span @@ -526,6 +531,10 @@ $status-margin: 0.75em; margin: 0 0.4em 0 0.2em; } + .strikethrough { + text-decoration: line-through; + } + .replies-separator { margin-left: 0.4em; } |
