Watch
1
0
Fork
You've already forked nexus
0
forked from Nexus/nexus

clamp shown read receipts to at least 1

fixes weird error when rotating on directory page
This commit is contained in:
Henry Hiles 2026-11-05 23:29:10 -05:00
commit 545fdd1f6b
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -1,3 +1,5 @@
import "dart:math";
import "package:hooks_riverpod/hooks_riverpod.dart";
import "package:material_ui/material_ui.dart";
import "package:material_adaptive_sheets/material_adaptive_sheets.dart";
@ -44,7 +46,7 @@ class const ReadReceiptsRow(
// If they don't all fit, the last spot shows how many more there are
final shown = receipts.length <= fits
? receipts.length
: fits - 1;
: max(0, fits - 1);
return Align(
alignment: .centerRight,