From 8e671b6ea7324a9163537cb6ad908cedbf18db72 Mon Sep 17 00:00:00 2001 From: Abhishek Shroff Date: Wed, 20 Nov 2024 00:08:01 +0530 Subject: [PATCH] [client] Fix name wrap in DnD --- client/lib/ui/explorer/resource_drop_and_drop.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/client/lib/ui/explorer/resource_drop_and_drop.dart b/client/lib/ui/explorer/resource_drop_and_drop.dart index 47e65b62..aa26caf5 100644 --- a/client/lib/ui/explorer/resource_drop_and_drop.dart +++ b/client/lib/ui/explorer/resource_drop_and_drop.dart @@ -172,7 +172,12 @@ class ResourceDraggable extends StatelessWidget { height: 48, child: ListTile( leading: resource.getIcon(), - title: Text(resource.name), + title: Text( + resource.name, + softWrap: false, + maxLines: 1, + overflow: TextOverflow.fade, + ), trailing: count == 1 ? null : Badge(label: Text(count.toString(), style: const TextStyle(fontSize: 14))), ), ),