mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
fix: character width calculation (#20201)
This commit is contained in:
parent
edefed56ae
commit
ed5759fe07
1 changed files with 1 additions and 1 deletions
|
|
@ -21,7 +21,7 @@ class EntitiyCountTile extends StatelessWidget {
|
||||||
|
|
||||||
int calculateMaxDigits(double availableWidth) {
|
int calculateMaxDigits(double availableWidth) {
|
||||||
const double charWidth = 11.0;
|
const double charWidth = 11.0;
|
||||||
return (availableWidth / charWidth).floor().clamp(1, 20);
|
return (availableWidth / charWidth).floor().clamp(1, 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue