From d7af030147c1d64ee79c2d031e127dbe76fb49d8 Mon Sep 17 00:00:00 2001 From: Fabian Freund Date: Sun, 30 Nov 2025 08:07:11 +0100 Subject: [PATCH] textfield linecount --- .../features/tabs/presentation/screens/container_sites.dart | 6 +++++- app/lib/features/web_feed/presentation/add_feed_dialog.dart | 2 ++ .../features/web_feed/presentation/screens/feed_edit.dart | 6 ++++++ 3 files changed, 13 insertions(+), 1 deletion(-) diff --git a/app/lib/features/geckoview/features/tabs/presentation/screens/container_sites.dart b/app/lib/features/geckoview/features/tabs/presentation/screens/container_sites.dart index 65f43cd4..f1b62b64 100644 --- a/app/lib/features/geckoview/features/tabs/presentation/screens/container_sites.dart +++ b/app/lib/features/geckoview/features/tabs/presentation/screens/container_sites.dart @@ -136,7 +136,11 @@ class ContainerSitesScreen extends HookConsumerWidget { return ListTile( leading: UrlIcon([site], iconSize: 20), - title: Text(site.host), + title: Text( + site.host, + maxLines: 3, + overflow: TextOverflow.ellipsis, + ), subtitle: Text(site.toString()), trailing: IconButton( onPressed: () { diff --git a/app/lib/features/web_feed/presentation/add_feed_dialog.dart b/app/lib/features/web_feed/presentation/add_feed_dialog.dart index a3fd6c17..d55e7154 100644 --- a/app/lib/features/web_feed/presentation/add_feed_dialog.dart +++ b/app/lib/features/web_feed/presentation/add_feed_dialog.dart @@ -52,6 +52,8 @@ class AddFeedDialog extends HookConsumerWidget { ), controller: textController, keyboardType: TextInputType.url, + minLines: 1, + maxLines: 10, validator: (value) { return validateUrl( value, diff --git a/app/lib/features/web_feed/presentation/screens/feed_edit.dart b/app/lib/features/web_feed/presentation/screens/feed_edit.dart index 6204fe4a..a869a935 100644 --- a/app/lib/features/web_feed/presentation/screens/feed_edit.dart +++ b/app/lib/features/web_feed/presentation/screens/feed_edit.dart @@ -226,6 +226,8 @@ class _FeedEditContent extends HookConsumerWidget { prefixIcon: Icon(Icons.image), ), keyboardType: TextInputType.url, + minLines: 1, + maxLines: 10, controller: iconUrlTextController, autovalidateMode: AutovalidateMode.onUserInteraction, validator: (value) { @@ -243,6 +245,8 @@ class _FeedEditContent extends HookConsumerWidget { prefixIcon: Icon(Icons.link), ), keyboardType: TextInputType.url, + minLines: 1, + maxLines: 10, controller: siteLinkTextController, autovalidateMode: AutovalidateMode.onUserInteraction, validator: (value) { @@ -268,6 +272,8 @@ class _FeedEditContent extends HookConsumerWidget { prefixIcon: Icon(MdiIcons.rss), ), keyboardType: TextInputType.url, + minLines: 1, + maxLines: 10, controller: urlTextController, autovalidateMode: AutovalidateMode.onUserInteraction, validator: (value) {