From 98619e22dde12ce1c1f968ed8140e5905cd13221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C9=B4=E1=B4=87=E1=B4=8B=E1=B4=8F?= Date: Wed, 4 Sep 2024 16:53:36 +0800 Subject: [PATCH 1/2] Improving the issue of line breaks in Chinese --- public/_locales/zh_TW/messages.json | 4 ++-- public/options/options.css | 20 +++++++++++++++++--- public/options/options.html | 2 +- 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/public/_locales/zh_TW/messages.json b/public/_locales/zh_TW/messages.json index c1ca8f0a..c66f4ddb 100644 --- a/public/_locales/zh_TW/messages.json +++ b/public/_locales/zh_TW/messages.json @@ -1,10 +1,10 @@ { "fullName": { - "message": "BiliBili Sponsor Block", + "message": "B站空降助手", "description": "Name of the extension." }, "shortName": { - "message": "Bili Sponsor Block" + "message": "空降助手" }, "Description": { "message": "廣告?桌子都給你掀了(/= _ =)/~┴┴ 帶您精準跳轉到高能時刻,自動跳過影片中的贊助廣告、訂閱提醒等片段。您也可以親自標記影片中的廣告並上傳,所有人都會從您的貢獻中受益。", diff --git a/public/options/options.css b/public/options/options.css index e3bc034c..8d0b29d8 100644 --- a/public/options/options.css +++ b/public/options/options.css @@ -696,10 +696,21 @@ svg { width: 100%; font-size: 30px; padding: 10px; - } + display: flex; + flex-wrap: wrap; + align-items: center; + justify-content: center; + } #title .profilepic { height: 40px; + margin-right: 10px; + } + + #title .title-text { + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } #createdBy { @@ -721,8 +732,11 @@ svg { #version { font-size: 10px; height: 10px; - transform: translate(-50px, -5px); - } + width: 100%; + text-align: center; + margin-top: 5px; + padding-right: 80px; + } .sticky #menubar { position: fixed; diff --git a/public/options/options.html b/public/options/options.html index b056d2ed..4767cda2 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -20,7 +20,7 @@
SponsorBlock logo - __MSG_fullName__ +
B站空降助手
From 727a7e64a8a6a48ea95fe51945f7eba5afd58bba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C9=B4=E1=B4=87=E1=B4=8B=E1=B4=8F?= Date: Wed, 4 Sep 2024 17:51:12 +0800 Subject: [PATCH 2/2] use MSG_fullName --- public/options/options.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/options/options.html b/public/options/options.html index 4767cda2..eb2b71ea 100644 --- a/public/options/options.html +++ b/public/options/options.html @@ -20,7 +20,9 @@
SponsorBlock logo -
B站空降助手
+
+ __MSG_fullName__ +