summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views
diff options
context:
space:
mode:
authorMeiMei <30769358+mei23@users.noreply.github.com>2018-11-30 09:34:37 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2018-11-30 09:34:37 +0900
commit59a1b9adbe5af3655a30987e73ea60597bb9d5ca (patch)
treeb19fefc6078421ebf3b721cd21cebfac211137fc /src/client/app/mobile/views
parentBetter limit (diff)
downloadmisskey-59a1b9adbe5af3655a30987e73ea60597bb9d5ca.tar.gz
misskey-59a1b9adbe5af3655a30987e73ea60597bb9d5ca.tar.bz2
misskey-59a1b9adbe5af3655a30987e73ea60597bb9d5ca.zip
Trim notifications text (#3438)
* Trim notifications * Remove needless colons * Use single quote * :art:
Diffstat (limited to 'src/client/app/mobile/views')
-rw-r--r--src/client/app/mobile/views/components/notification.vue11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/client/app/mobile/views/components/notification.vue b/src/client/app/mobile/views/components/notification.vue
index c99b291ff6..1228047c94 100644
--- a/src/client/app/mobile/views/components/notification.vue
+++ b/src/client/app/mobile/views/components/notification.vue
@@ -8,7 +8,7 @@
<router-link :to="notification.user | userPage">{{ notification.user | userName }}</router-link>
<mk-time :time="notification.createdAt"/>
</header>
- <router-link class="note-ref" :to="notification.note | notePage">
+ <router-link class="note-ref" :to="notification.note | notePage" :title="getNoteSummary(notification.note)">
<fa icon="quote-left"/>{{ getNoteSummary(notification.note) }}
<fa icon="quote-right"/>
</router-link>
@@ -23,7 +23,7 @@
<router-link :to="notification.user | userPage">{{ notification.user | userName }}</router-link>
<mk-time :time="notification.createdAt"/>
</header>
- <router-link class="note-ref" :to="notification.note | notePage">
+ <router-link class="note-ref" :to="notification.note | notePage" :title="getNoteSummary(notification.note.renote)">
<fa icon="quote-left"/>{{ getNoteSummary(notification.note.renote) }}<fa icon="quote-right"/>
</router-link>
</div>
@@ -59,7 +59,7 @@
<router-link :to="notification.user | userPage">{{ notification.user | userName }}</router-link>
<mk-time :time="notification.createdAt"/>
</header>
- <router-link class="note-ref" :to="notification.note | notePage">
+ <router-link class="note-ref" :to="notification.note | notePage" :title="getNoteSummary(notification.note)">
<fa icon="quote-left"/>{{ getNoteSummary(notification.note) }}<fa icon="quote-right"/>
</router-link>
</div>
@@ -162,6 +162,11 @@ export default Vue.extend({
> .note-ref
color var(--noteText)
+ display inline-block
+ width: 100%
+ overflow hidden
+ white-space nowrap
+ text-overflow ellipsis
[data-icon]
font-size 1em