From acde0b316c86df2e98815086230abc9a3500f746 Mon Sep 17 00:00:00 2001 From: Shpuld Shpuldson Date: Tue, 7 Nov 2017 12:22:33 +0200 Subject: [PATCH 01/21] Changes inside status html: restrict image/video sizes, make blockquotes waste less space. --- src/components/status/status.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/status/status.vue b/src/components/status/status.vue index b8f71dd47d..cc315a9043 100644 --- a/src/components/status/status.vue +++ b/src/components/status/status.vue @@ -185,6 +185,15 @@ .status-content { margin: 3px 15px 4px 0; + img, video { + max-width: 100%; + max-height: 400px; + } + + blockquote { + margin: 0.2em 0 0.2em 2em; + font-style: italic; + } } p { From 7516cd859f0c9bc078548f801cbb6a63b72ced97 Mon Sep 17 00:00:00 2001 From: Roger Braun Date: Tue, 7 Nov 2017 15:14:37 +0100 Subject: [PATCH 02/21] Prepare for i18n. --- package.json | 1 + src/components/nav_panel/nav_panel.vue | 8 +-- .../notifications/notifications.vue | 6 +- src/components/settings/settings.vue | 20 +++--- src/components/timeline/timeline.vue | 12 ++-- src/components/user_card/user_card.vue | 2 +- .../user_card_content/user_card_content.vue | 28 ++++---- .../user_settings/user_settings.vue | 32 ++++----- src/i18n/messages.js | 70 +++++++++++++++++++ src/main.js | 11 +++ yarn.lock | 4 ++ 11 files changed, 142 insertions(+), 52 deletions(-) create mode 100644 src/i18n/messages.js diff --git a/package.json b/package.json index 63fd490d27..e8d842748d 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "sanitize-html": "^1.13.0", "sass-loader": "^4.0.2", "vue": "^2.3.4", + "vue-i18n": "^7.3.2", "vue-router": "^2.5.3", "vue-template-compiler": "^2.3.4", "vue-timeago": "^3.1.2", diff --git a/src/components/nav_panel/nav_panel.vue b/src/components/nav_panel/nav_panel.vue index d43397783e..aea841e9e2 100644 --- a/src/components/nav_panel/nav_panel.vue +++ b/src/components/nav_panel/nav_panel.vue @@ -4,22 +4,22 @@ diff --git a/src/components/notifications/notifications.vue b/src/components/notifications/notifications.vue index 2ad7c488e0..dfc7b0c927 100644 --- a/src/components/notifications/notifications.vue +++ b/src/components/notifications/notifications.vue @@ -3,8 +3,8 @@
{{unseenCount}} - Notifications - + {{$t('notifications.notifications')}} +
@@ -44,7 +44,7 @@
- @{{ notification.action.user.screen_name }} followed you + @{{ notification.action.user.screen_name }} {{$t('notifications.followed_you')}}
diff --git a/src/components/settings/settings.vue b/src/components/settings/settings.vue index 6ff96fece5..5978e4ed54 100644 --- a/src/components/settings/settings.vue +++ b/src/components/settings/settings.vue @@ -1,40 +1,40 @@