diff --git a/src/client/gui/lib/vm_details/ip_addresses.dart b/src/client/gui/lib/vm_details/ip_addresses.dart index 89829be826..84ce2c890e 100644 --- a/src/client/gui/lib/vm_details/ip_addresses.dart +++ b/src/client/gui/lib/vm_details/ip_addresses.dart @@ -17,7 +17,7 @@ class IpAddresses extends StatelessWidget { Expanded( child: Tooltip( message: firstIp, - child: Text(firstIp.nonBreaking, overflow: TextOverflow.ellipsis), + child: SelectableText(firstIp.nonBreaking, maxLines: 1), ), ), if (restIps.isNotEmpty) diff --git a/src/client/gui/lib/vm_details/memory_usage.dart b/src/client/gui/lib/vm_details/memory_usage.dart index c252380f70..6cba5047c7 100644 --- a/src/client/gui/lib/vm_details/memory_usage.dart +++ b/src/client/gui/lib/vm_details/memory_usage.dart @@ -21,7 +21,7 @@ class MemoryUsage extends StatelessWidget { color: value < 0.8 ? normalColor : almostFullColor, ); - final label = Text( + final label = SelectableText( value != 0 ? '${_formatMemory(used)} / ${_formatMemory(total)}' : '-', style: const TextStyle(fontSize: 11), ); diff --git a/src/client/gui/lib/vm_details/vm_details_general.dart b/src/client/gui/lib/vm_details/vm_details_general.dart index 986858b51c..c8f3a6209c 100644 --- a/src/client/gui/lib/vm_details/vm_details_general.dart +++ b/src/client/gui/lib/vm_details/vm_details_general.dart @@ -76,11 +76,11 @@ class VmDetailsHeader extends ConsumerWidget { final list = [ Expanded( - child: Text( + child: SelectableText( name.nonBreaking, style: const TextStyle(fontSize: 24, fontWeight: FontWeight.w300), maxLines: 1, - overflow: TextOverflow.ellipsis, + textAlign: TextAlign.start, ), ), locationButtons, @@ -150,28 +150,28 @@ class GeneralDetails extends ConsumerWidget { width: 150, height: baseVmStatHeight, label: 'IMAGE', - child: Text(info.instanceInfo.currentRelease), + child: SelectableText(info.instanceInfo.currentRelease), ); final privateIp = VmStat( width: 150, height: baseVmStatHeight, label: 'PRIVATE IP', - child: Text(info.instanceInfo.ipv4.firstOrNull ?? '-'), + child: SelectableText(info.instanceInfo.ipv4.firstOrNull ?? '-'), ); final publicIp = VmStat( width: 150, height: baseVmStatHeight, label: 'PUBLIC IP', - child: Text(info.instanceInfo.ipv4.skip(1).firstOrNull ?? '-'), + child: SelectableText(info.instanceInfo.ipv4.skip(1).firstOrNull ?? '-'), ); final created = VmStat( width: 140, height: baseVmStatHeight, label: 'CREATED', - child: Text( + child: SelectableText( DateFormat('yyyy-MM-dd HH:mm:ss') .format(info.instanceInfo.creationTimestamp.toDateTime()), ), @@ -181,7 +181,7 @@ class GeneralDetails extends ConsumerWidget { width: 300, height: baseVmStatHeight, label: 'UPTIME', - child: Text(info.instanceInfo.uptime), + child: SelectableText(info.instanceInfo.uptime), ); return Column( diff --git a/src/client/gui/lib/vm_table/vm_table_headers.dart b/src/client/gui/lib/vm_table/vm_table_headers.dart index 173d8348eb..ebac8f94aa 100644 --- a/src/client/gui/lib/vm_table/vm_table_headers.dart +++ b/src/client/gui/lib/vm_table/vm_table_headers.dart @@ -72,9 +72,9 @@ final headers = >[ minWidth: 70, cellBuilder: (info) { final image = info.instanceInfo.currentRelease; - return Text( + return SelectableText( image.isNotBlank ? image.nonBreaking : '-', - overflow: TextOverflow.ellipsis, + maxLines: 1, ); }, ),