From 61a1a4b2dd538385de116a0158e5a0db37f2910a Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Tue, 17 Apr 2018 23:46:16 +0900 Subject: [PATCH 1/4] refs #186 Show account name in toot --- .../TimelineSpace/Contents/Cards/Toot.vue | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue b/src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue index 1d04e3c2cd..9521529786 100644 --- a/src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue +++ b/src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue @@ -6,7 +6,8 @@
- {{ username(originalMessage(message).account) }} + {{ username(originalMessage(message).account) }} + @{{ originalMessage(message).account.username }}
{{ parseDatetime(message.created_at) }} @@ -200,14 +201,22 @@ function findLink (target) { .toot-header { .user { float: left; - font-weight: 800; - color: var(--theme-primary-color); font-size: 14px; cursor: pointer; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; + + .display-name { + font-weight: 800; + color: var(--theme-primary-color); + } + + .acct { + font-weight: normal; + color: var(--theme-secondary-color); + } } .timestamp { From 3e75e18ffd9435ec5f1d6516f940370d96c1ef2f Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Wed, 18 Apr 2018 23:37:00 +0900 Subject: [PATCH 2/4] refs #186 Change username style according to setting --- src/main/preferences.js | 3 +- .../TimelineSpace/Contents/Cards/Toot.vue | 37 ++++++++++++++++--- src/renderer/store/App.js | 10 ++++- 3 files changed, 43 insertions(+), 7 deletions(-) diff --git a/src/main/preferences.js b/src/main/preferences.js index 43d93fab55..072c171b8e 100644 --- a/src/main/preferences.js +++ b/src/main/preferences.js @@ -7,7 +7,8 @@ const Base = { fav_rb: true, toot: true }, - theme: 'white' + theme: 'white', + displayName: 0 } } diff --git a/src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue b/src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue index 9521529786..244f3cac8b 100644 --- a/src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue +++ b/src/renderer/components/TimelineSpace/Contents/Cards/Toot.vue @@ -7,7 +7,7 @@
{{ username(originalMessage(message).account) }} - @{{ originalMessage(message).account.username }} + {{ accountName(originalMessage(message).account) }}
{{ parseDatetime(message.created_at) }} @@ -65,10 +65,16 @@