Skip to content

Commit 18a53b4

Browse files
committed
fix: 扩展导入提示超出屏幕
1 parent 39d5717 commit 18a53b4

File tree

7 files changed

+20
-15
lines changed

7 files changed

+20
-15
lines changed

assets/i18n/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"import": {
4040
"title": "Import Extension",
4141
"url-label": "Extension URL",
42-
"tips": "You can import extensions through a link,\nor click on the extension directory below\nand place the extension file there.",
42+
"tips": "You can import extensions through a link,or click on the extension directory below and place the extension file there.",
4343
"extension-dir": "Extension Directory",
4444
"import-by-url": "Import by URL"
4545
},
@@ -50,7 +50,7 @@
5050

5151
"extension-repo": {
5252
"error": "An error occurred!",
53-
"error-tips": "Please check your network connection\nor the repository address",
53+
"error-tips": "Please check your network connection or the repository address",
5454
"empty": "Repository is empty",
5555
"upgrade": "Update"
5656
},

assets/i18n/ja.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"import": {
4040
"title": "拡張機能をインポート",
4141
"url-label": "拡張機能のURL",
42-
"tips": "リンクを通じて拡張機能をインポートすることも、\n以下の拡張機能ディレクトリをクリックして\nそこに拡張機能ファイルを配置することもできます",
42+
"tips": "リンクを通じて拡張機能をインポートすることも、以下の拡張機能ディレクトリをクリックしてそこに拡張機能ファイルを配置することもできます",
4343
"extension-dir": "拡張機能ディレクトリ",
4444
"import-by-url": "URLでインポート"
4545
},
@@ -50,7 +50,7 @@
5050

5151
"extension-repo": {
5252
"error": "エラーが発生しました!",
53-
"error-tips": "ネットワーク接続を確認するか\nリポジトリのアドレスを確認してください",
53+
"error-tips": "ネットワーク接続を確認するかリポジトリのアドレスを確認してください",
5454
"empty": "リポジトリが空です",
5555
"upgrade": "更新"
5656
},

assets/i18n/ru.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"import": {
4040
"title": "Импорт расширения",
4141
"url-label": "URL расширения",
42-
"tips": "Вы можете импортировать расширения по ссылке\nили щёлкнуть каталог расширения ниже\nи поместить туда файл расширения.",
42+
"tips": "Вы можете импортировать расширения по ссылке или щёлкнуть каталог расширения ниже и поместить туда файл расширения.",
4343
"extension-dir": "Каталог расширений",
4444
"import-by-url": "Импорт по URL"
4545
},
@@ -50,7 +50,7 @@
5050

5151
"extension-repo": {
5252
"error": "Произошла ошибка!",
53-
"error-tips": "Пожалуйста, проверьте подключение к сети\n адрес репозитория",
53+
"error-tips": "Пожалуйста, проверьте подключение к сети адрес репозитория",
5454
"empty": "Репозиторий пуст",
5555
"upgrade": "Обновление"
5656
},

assets/i18n/ryu.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"import": {
4040
"title": "かくはべるちぬーインポート",
4141
"url-label": "かくはべるちぬーぬURL",
42-
"tips": "リンクちうじてぃかくはべるちぬーインポートすしん、\nいかぬかくはべるちぬーディレクトリクリックし\nうまんかいかちゅるはべるちぬーファイルはいちすしんなやびーん",
42+
"tips": "リンクちうじてぃかくはべるちぬーインポートすしん、いかぬかくはべるちぬーディレクトリクリックしうまんかいかちゅるはべるちぬーファイルはいちすしんなやびーん",
4343
"extension-dir": "かくはべるちぬーディレクトリ",
4444
"import-by-url": "URLっしインポート"
4545
},
@@ -50,7 +50,7 @@
5050

5151
"extension-repo": {
5252
"error": "エラーぬはっせいさびたん!",
53-
"error-tips": "ネットワークしちずいちゅんかくにんすが\nリポジトリぬアドレスかくにんしみそーれー",
53+
"error-tips": "ネットワークしちずいちゅんかくにんすがリポジトリぬアドレスかくにんしみそーれー",
5454
"empty": "リポジトリぬからやいびーん",
5555
"upgrade": "こうしん"
5656
},

assets/i18n/zh.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"import": {
4848
"title": "导入扩展",
4949
"url-label": "扩展地址",
50-
"tips": "你可以通过链接导入扩展,\n或者点击下方的扩展目录,将扩展文件\n放入其中",
50+
"tips": "你可以通过链接导入扩展,或者点击下方的扩展目录,将扩展文件放入其中",
5151
"extension-dir": "扩展目录",
5252
"import-by-url": "通过链接导入"
5353
},

lib/pages/extension/view.dart

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,11 @@ class _ExtensionPageState extends State<ExtensionPage> {
6464
children: [
6565
const Icon(fluent.FluentIcons.error),
6666
const SizedBox(width: 8),
67-
Text(
68-
"extension.import.tips".i18n,
69-
softWrap: true,
67+
Expanded(
68+
child: Text(
69+
"extension.import.tips".i18n,
70+
softWrap: true,
71+
),
7072
)
7173
],
7274
),

lib/pages/extension_repo/view.dart

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,12 @@ class _ExtensionRepoPageState extends State<ExtensionRepoPage> {
3535
children: [
3636
Text('extension-repo.error'.i18n),
3737
const SizedBox(height: 8),
38-
Text(
39-
'extension-repo.error-tips'.i18n,
40-
style: const TextStyle(fontSize: 12),
38+
fluent.Padding(
39+
padding: const EdgeInsets.all(8.0),
40+
child: Text(
41+
'extension-repo.error-tips'.i18n,
42+
style: const TextStyle(fontSize: 12),
43+
),
4144
),
4245
const SizedBox(height: 13),
4346
PlatformFilledButton(

0 commit comments

Comments
 (0)