mirror of
https://github.com/immich-app/immich
synced 2025-11-14 17:36:12 +00:00
fix(mobile): inconsistent thumbnail's label (#10589)
* fix(mobile): inconsistent thumbnail with label * fix: limit person's name width
This commit is contained in:
parent
c83de5213f
commit
04f0e29df6
5 changed files with 129 additions and 137 deletions
|
|
@ -26,7 +26,7 @@ class CuratedPeopleRow extends StatelessWidget {
|
|||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SizedBox(
|
||||
height: imageSize + 30,
|
||||
height: imageSize + 50,
|
||||
child: ListView.separated(
|
||||
padding: padding,
|
||||
scrollDirection: Axis.horizontal,
|
||||
|
|
@ -57,7 +57,10 @@ class CuratedPeopleRow extends StatelessWidget {
|
|||
),
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
_buildPersonLabel(context, person, index),
|
||||
SizedBox(
|
||||
width: imageSize,
|
||||
child: _buildPersonLabel(context, person, index),
|
||||
),
|
||||
],
|
||||
);
|
||||
},
|
||||
|
|
@ -79,6 +82,9 @@ class CuratedPeopleRow extends StatelessWidget {
|
|||
style: context.textTheme.labelLarge?.copyWith(
|
||||
color: context.primaryColor,
|
||||
),
|
||||
maxLines: 2,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
textAlign: TextAlign.center,
|
||||
).tr(),
|
||||
);
|
||||
}
|
||||
|
|
@ -87,6 +93,7 @@ class CuratedPeopleRow extends StatelessWidget {
|
|||
textAlign: TextAlign.center,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: context.textTheme.labelLarge,
|
||||
maxLines: 2,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue