Merge pull request #884 from pangeachat/wrap-inline-tooltip-text

allow text to wrap in inline tooltips
This commit is contained in:
ggurdin 2024-10-31 13:31:37 -04:00 committed by GitHub
commit 9a9152f46d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -41,14 +41,16 @@ class InlineTooltip extends StatelessWidget {
),
const SizedBox(width: 8),
// Text in the middle
Center(
child: Text(
instructionsEnum.body(L10n.of(context)!),
style: TextStyle(
color: Theme.of(context).colorScheme.onSurface,
height: 1.5,
Flexible(
child: Center(
child: Text(
instructionsEnum.body(L10n.of(context)!),
style: TextStyle(
color: Theme.of(context).colorScheme.onSurface,
height: 1.5,
),
textAlign: TextAlign.left,
),
textAlign: TextAlign.left,
),
),
// Close button on the right