chore: fix overflow in construct notification (#2517)

pull/1817/head
ggurdin 7 months ago committed by GitHub
parent 327160c2a7
commit 4f604e598a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -219,29 +219,31 @@ class ConstructNotificationOverlayState
), ),
), ),
), ),
Row( SizedBox(
children: [ width: constraints.maxWidth >= 600 ? 120.0 : 65.0,
SizedBox( child: Row(
width: constraints.maxWidth >= 600 ? 120.0 : 65.0, mainAxisAlignment: MainAxisAlignment.spaceBetween,
child: Row( children: [
mainAxisAlignment: MainAxisAlignment.spaceBetween, Tooltip(
children: [ message: L10n.of(context).details,
Tooltip( child: constraints.maxWidth >= 600
message: L10n.of(context).details, ? ElevatedButton(
child: constraints.maxWidth >= 600 style: IconButton.styleFrom(
? ElevatedButton( padding: const EdgeInsets.symmetric(
style: IconButton.styleFrom( vertical: 4.0,
padding: const EdgeInsets.symmetric( horizontal: 16.0,
vertical: 4.0, ),
horizontal: 16.0, ),
), onPressed: _showDetails,
), child: Text(
onPressed: _showDetails, L10n.of(context).details,
child: Text( ),
L10n.of(context).details, )
), : SizedBox(
) width: 32.0,
: IconButton( height: 32.0,
child: Center(
child: IconButton(
icon: const Icon( icon: const Icon(
Icons.info_outline, Icons.info_outline,
), ),
@ -251,8 +253,14 @@ class ConstructNotificationOverlayState
onPressed: _showDetails, onPressed: _showDetails,
constraints: const BoxConstraints(), constraints: const BoxConstraints(),
), ),
), ),
Tooltip( ),
),
SizedBox(
width: 32.0,
height: 32.0,
child: Center(
child: Tooltip(
message: L10n.of(context).close, message: L10n.of(context).close,
child: IconButton( child: IconButton(
icon: const Icon( icon: const Icon(
@ -265,10 +273,10 @@ class ConstructNotificationOverlayState
constraints: const BoxConstraints(), constraints: const BoxConstraints(),
), ),
), ),
], ),
), ),
), ],
], ),
), ),
], ],
), ),

Loading…
Cancel
Save