[mob][photos] Increase "Add name" hitpoint

This commit is contained in:
laurenspriem 2024-05-11 14:53:19 +05:30
parent 3ab2535193
commit abff589c21

View file

@ -80,9 +80,7 @@ class _SearchSectionState extends State<SearchSection> {
debugPrint("Building section for ${widget.sectionType.name}");
final shouldShowMore = _examples.length >= widget.limit - 1;
final textTheme = getEnteTextTheme(context);
return Padding(
padding: const EdgeInsets.symmetric(vertical: 8),
child: _examples.isNotEmpty
return _examples.isNotEmpty
? GestureDetector(
behavior: HitTestBehavior.opaque,
onTap: () {
@ -151,7 +149,6 @@ class _SearchSectionState extends State<SearchSection> {
SearchSectionEmptyCTAIcon(widget.sectionType),
],
),
),
);
}
}
@ -231,7 +228,7 @@ class SearchExample extends StatelessWidget {
child: SizedBox(
width: width,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 10),
padding: const EdgeInsets.only(left: 6, right: 6, top: 8),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
@ -260,11 +257,9 @@ class SearchExample extends StatelessWidget {
),
),
),
const SizedBox(
height: 10,
),
isCluster
? GestureDetector(
behavior: HitTestBehavior.translucent,
onTap: () async {
final result = await showAssignPersonAction(
context,
@ -276,6 +271,8 @@ class SearchExample extends StatelessWidget {
routeToPage(context, PeoplePage(person: result));
}
},
child: Padding(
padding: const EdgeInsets.only(top: 10, bottom: 16),
child: Text(
"Add name",
maxLines: 1,
@ -283,14 +280,18 @@ class SearchExample extends StatelessWidget {
overflow: TextOverflow.ellipsis,
style: getEnteTextTheme(context).mini,
),
),
)
: Text(
: Padding(
padding: const EdgeInsets.only(top: 10, bottom: 16),
child: Text(
searchResult.name(),
maxLines: 2,
textAlign: TextAlign.center,
overflow: TextOverflow.ellipsis,
style: getEnteTextTheme(context).mini,
),
),
],
),
),