mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-07 20:30:08 +03:00
fix tab lable translation (#13240)
Signed-off-by: 21pages <sunboeasy@gmail.com>
This commit is contained in:
@@ -1080,11 +1080,12 @@ class _TabState extends State<_Tab> with RestorationMixin {
|
|||||||
return ConstrainedBox(
|
return ConstrainedBox(
|
||||||
constraints: BoxConstraints(maxWidth: widget.maxLabelWidth ?? 200),
|
constraints: BoxConstraints(maxWidth: widget.maxLabelWidth ?? 200),
|
||||||
child: Tooltip(
|
child: Tooltip(
|
||||||
message: widget.tabType == DesktopTabType.main
|
message:
|
||||||
? ''
|
widget.tabType == DesktopTabType.main ? '' : widget.label.value,
|
||||||
: translate(widget.label.value),
|
|
||||||
child: Text(
|
child: Text(
|
||||||
translate(widget.label.value),
|
widget.tabType == DesktopTabType.main
|
||||||
|
? translate(widget.label.value)
|
||||||
|
: widget.label.value,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: isSelected
|
color: isSelected
|
||||||
|
|||||||
Reference in New Issue
Block a user