From 04fa1f0b2d1a92b1c653cd55f51ee7e1434b2bd7 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Mon, 7 Jun 2021 18:39:51 +0300 Subject: some docs, added richcontent to usernames in status, updated stillImage to allow scale of "gif" label --- src/components/status/status.scss | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/components/status/status.scss') diff --git a/src/components/status/status.scss b/src/components/status/status.scss index 58b55bc8..82088943 100644 --- a/src/components/status/status.scss +++ b/src/components/status/status.scss @@ -93,12 +93,8 @@ $status-margin: 0.75em; margin-right: 0.4em; text-overflow: ellipsis; - .emoji { - width: 14px; - height: 14px; - vertical-align: middle; - object-fit: contain; - } + --_still_image-label-scale: 0.25; + --emoji-size: 14px; } .status-favicon { -- cgit v1.2.3-70-g09d2 From 3abd357694c29c84d213d7d2a7a954ab2a591da0 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Tue, 8 Jun 2021 11:38:44 +0300 Subject: moving mentions into separate row --- src/components/mention_link/mention_link.js | 20 +++++++++++-- src/components/mention_link/mention_link.scss | 5 ++++ src/components/mention_link/mention_link.vue | 2 +- src/components/rich_content/rich_content.jsx | 19 +++++++++--- src/components/status/status.js | 22 ++++++++++---- src/components/status/status.scss | 3 +- src/components/status/status.vue | 43 ++++++++++++++++++++++----- src/i18n/en.json | 1 + 8 files changed, 94 insertions(+), 21 deletions(-) (limited to 'src/components/status/status.scss') diff --git a/src/components/mention_link/mention_link.js b/src/components/mention_link/mention_link.js index d26ae337..465c7d00 100644 --- a/src/components/mention_link/mention_link.js +++ b/src/components/mention_link/mention_link.js @@ -14,8 +14,14 @@ const MentionLink = { type: String }, origattrs: { - required: true, - type: Object + required: false, + type: Object, + default: {} + }, + firstMention: { + required: false, + type: Boolean, + default: false } }, methods: { @@ -61,6 +67,16 @@ const MentionLink = { return rest } }, + classnames () { + return [ + { + '-you': this.isYou, + '-highlighted': this.highlight, + '-firstMention': this.firstMention + }, + this.highlightType + ] + }, ...mapGetters(['mergedConfig']), ...mapState({ currentUser: state => state.users.currentUser diff --git a/src/components/mention_link/mention_link.scss b/src/components/mention_link/mention_link.scss index 78a9816c..dec11014 100644 --- a/src/components/mention_link/mention_link.scss +++ b/src/components/mention_link/mention_link.scss @@ -39,10 +39,15 @@ } .new { + &.-firstMention { + display: none; + } + &, &.-highlighted { .short { line-height: 1.5; + font-size: inherit; &::before { display: inline-block; diff --git a/src/components/mention_link/mention_link.vue b/src/components/mention_link/mention_link.vue index d8d45a1b..05f6fd91 100644 --- a/src/components/mention_link/mention_link.vue +++ b/src/components/mention_link/mention_link.vue @@ -12,7 +12,7 @@ v-if="user" class="new" :style="style" - :class="[{ '-you': isYou, '-highlighted': highlight }, highlightType]" + :class="classnames" > - + + + {{ $t('status.reply_to') }} + + + - - {{ $t('status.reply_to') }} + + {{ $t('status.reply_to') }} + + - - + + - - {{ $t('status.mentions') }} + + {{ $t('status.mentions') }} + + -- cgit v1.2.3-70-g09d2 From 24f3681ac157594c94e3b933aa85bc4707758746 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 12 Jun 2021 17:11:49 +0300 Subject: fix color of reply row, fix overflow in status-popover --- src/components/status/status.scss | 4 ++++ src/components/status/status.vue | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/components/status/status.scss') diff --git a/src/components/status/status.scss b/src/components/status/status.scss index e68bc62c..3805aa30 100644 --- a/src/components/status/status.scss +++ b/src/components/status/status.scss @@ -4,6 +4,7 @@ $status-margin: 0.75em; .Status { min-width: 0; + white-space: normal; &:hover { --_still-image-img-visibility: visible; @@ -166,6 +167,7 @@ $status-margin: 0.75em; line-height: 160%; max-width: 100%; align-items: stretch; + z-index: 2; } & .reply-to-popover, @@ -211,7 +213,9 @@ $status-margin: 0.75em; padding-right: 0.25em; } + & .mentions-text, & .reply-to-text { + color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; diff --git a/src/components/status/status.vue b/src/components/status/status.vue index be6458ae..a5f347a6 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -247,7 +247,7 @@ flip="horizontal" /> {{ $t('status.reply_to') }} @@ -281,7 +281,7 @@ @click.prevent="gotoOriginal(status.in_reply_to_status_id)" > {{ $t('status.mentions') }} -- cgit v1.2.3-70-g09d2 From 2c60a9b638a00db33e6c47e8642aff2ffd0ce7a0 Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 12 Jun 2021 20:51:36 +0300 Subject: fix next relply-row bleeding through popover --- src/components/status/status.scss | 1 - 1 file changed, 1 deletion(-) (limited to 'src/components/status/status.scss') diff --git a/src/components/status/status.scss b/src/components/status/status.scss index 3805aa30..71305dd7 100644 --- a/src/components/status/status.scss +++ b/src/components/status/status.scss @@ -167,7 +167,6 @@ $status-margin: 0.75em; line-height: 160%; max-width: 100%; align-items: stretch; - z-index: 2; } & .reply-to-popover, -- cgit v1.2.3-70-g09d2