fix: letterCacheTip translation

This commit is contained in:
lollipopkit🏳️‍⚧️
2024-07-23 12:14:31 +08:00
parent 87b3b76b0b
commit 0a21b2820c
13 changed files with 24 additions and 15 deletions

View File

@@ -243,13 +243,22 @@ class _ServerDetailPageState extends State<ServerDetailPage>
}
Widget _buildCpuModelItem(MapEntry<String, int> e) {
return Row(
final child = Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(e.key, style: UIs.text13),
SizedBox(
width: _media.size.width * .7,
child: Text(
e.key,
style: UIs.text13,
overflow: TextOverflow.fade,
maxLines: 1,
),
),
Text('x ${e.value}', style: UIs.text13Grey),
],
).paddingSymmetric(horizontal: 17);
);
return child.paddingSymmetric(horizontal: 17);
}
Widget _buildDetailPercent(double percent, String timeType) {

View File

@@ -147,7 +147,7 @@ class SSHPageState extends State<SSHPage>
controller: _terminalController,
keyboardType:
letterCache ? TextInputType.text : TextInputType.visiblePassword,
enableSuggestions: !letterCache,
enableSuggestions: letterCache,
textStyle: _terminalStyle,
theme: _terminalTheme,
deleteDetection: isMobile,