mirror of
https://github.com/immich-app/immich.git
synced 2025-05-24 01:12:58 -04:00
feat(mobile): Capitalize month names in asset grid (#17898)
* capitalize month titles * capitalize day titles as well
This commit is contained in:
parent
ad272333db
commit
21c7d70336
@ -755,7 +755,7 @@ class _MonthTitle extends StatelessWidget {
|
|||||||
key: Key("month-$title"),
|
key: Key("month-$title"),
|
||||||
padding: const EdgeInsets.only(left: 12.0, top: 24.0),
|
padding: const EdgeInsets.only(left: 12.0, top: 24.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
title,
|
toBeginningOfSentenceCase(title, context.locale.languageCode),
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 26,
|
fontSize: 26,
|
||||||
fontWeight: FontWeight.w500,
|
fontWeight: FontWeight.w500,
|
||||||
@ -786,7 +786,7 @@ class _Title extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return GroupDividerTitle(
|
return GroupDividerTitle(
|
||||||
text: title,
|
text: toBeginningOfSentenceCase(title, context.locale.languageCode),
|
||||||
multiselectEnabled: selectionActive,
|
multiselectEnabled: selectionActive,
|
||||||
onSelect: () => selectAssets(assets),
|
onSelect: () => selectAssets(assets),
|
||||||
onDeselect: () => deselectAssets(assets),
|
onDeselect: () => deselectAssets(assets),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user