fix: reduce minWidth of internal constrained box in word zoom card to account for padding (#1428)

This commit is contained in:
ggurdin 2025-01-13 14:10:25 -05:00 committed by GitHub
parent a37266fc3d
commit 1c8d519342
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -218,7 +218,8 @@ class WordZoomWidgetState extends State<WordZoomWidget> {
children: [
ConstrainedBox(
constraints: const BoxConstraints(
minWidth: AppConfig.toolbarMinWidth,
// subtracting 16.0 to account for the padding
minWidth: AppConfig.toolbarMinWidth - 16.0,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,