From 56b7092944a77ed8e39a267b5fe693d0bf0154fa Mon Sep 17 00:00:00 2001 From: Janne Hamalainen Date: Tue, 2 Feb 2021 20:11:47 +0200 Subject: [PATCH] Improvement for tips/hint support Added tip for settings, mute and layer pause/play buttons. Added new localization string for settings for all languages. Japanese and Chinese strings translated with google. Tips banner is shown on a bit lower position on dashboard so that it wont be hidden e.g. by the volume control. --- src/dashboard/settings.vue | 1 + src/dashboard/volume.vue | 2 ++ src/lang/en.json | 3 ++- src/lang/jp.json | 3 ++- src/lang/zh-cn.json | 3 ++- src/layers/play-pause-layer.vue | 2 ++ src/style/common.less | 9 +++++++-- 7 files changed, 18 insertions(+), 5 deletions(-) diff --git a/src/dashboard/settings.vue b/src/dashboard/settings.vue index bb8b0d6..f812fca 100644 --- a/src/dashboard/settings.vue +++ b/src/dashboard/settings.vue @@ -2,6 +2,7 @@
+
{{$t('dashboard.btn.settings')}}
    diff --git a/src/dashboard/volume.vue b/src/dashboard/volume.vue index 8cf8621..3baa008 100644 --- a/src/dashboard/volume.vue +++ b/src/dashboard/volume.vue @@ -2,9 +2,11 @@
    +
    {{$t('dashboard.btn.mute')}}
    +
    {{$t('dashboard.btn.unmute')}}
    diff --git a/src/lang/en.json b/src/lang/en.json index caea9b5..d9ad92b 100644 --- a/src/lang/en.json +++ b/src/lang/en.json @@ -8,7 +8,8 @@ "mute": "Mute", "unmute": "Unmute", "back": "Back", - "pip": "Picture-in-Picture" + "pip": "Picture-in-Picture", + "settings": "Settings" }, "settings" : { "autoplay": "Autoplay", diff --git a/src/lang/jp.json b/src/lang/jp.json index 148e87e..1f87c5d 100644 --- a/src/lang/jp.json +++ b/src/lang/jp.json @@ -8,7 +8,8 @@ "mute": "ミュート", "unmute": "ミュートを解除", "back": "戻る", - "pip": "ピクチャインピクチャ" + "pip": "ピクチャインピクチャ", + "settings": "設定" }, "settings" : { "autoplay": "自動再生", diff --git a/src/lang/zh-cn.json b/src/lang/zh-cn.json index 838854c..387c3ce 100644 --- a/src/lang/zh-cn.json +++ b/src/lang/zh-cn.json @@ -8,7 +8,8 @@ "mute": "静音", "unmute": "取消静音", "back": "返回", - "pip": "画中画模式" + "pip": "画中画模式", + "settings": "设置" }, "settings" : { "autoplay": "自动播放", diff --git a/src/layers/play-pause-layer.vue b/src/layers/play-pause-layer.vue index 9189cf6..f618c31 100644 --- a/src/layers/play-pause-layer.vue +++ b/src/layers/play-pause-layer.vue @@ -2,9 +2,11 @@ diff --git a/src/style/common.less b/src/style/common.less index ddbecc1..8245676 100644 --- a/src/style/common.less +++ b/src/style/common.less @@ -87,7 +87,7 @@ min-width: 30px; padding: 4px; border-radius: 2px; - bottom: 54px; + bottom: 28px; left: 50%; transform: translateX(-50%); font-size: 12px; @@ -97,11 +97,16 @@ text-align: center; line-height: 1.2; word-break: keep-all; - word-wrap: no-wrap; + word-wrap: normal; white-space: nowrap; opacity: 0; transition: opacity .15s ease-in; } + + .tips--loose { + bottom: 54px; + } + svg { opacity: .85; transition: opacity .1s ease;