Skip to content

Commit 43fb285

Browse files
committed
fix: update workaround button style
1 parent c339d1f commit 43fb285

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

lib/utils/html/html_muncher.dart

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,13 +391,16 @@ final class _Muncher with LoggerMixin {
391391
if (tmpImpellerWorkaroundUrls.contains(url)) {
392392
return [
393393
WidgetSpan(
394-
child: IconButton(
395-
icon: Icon(Icons.navigate_before_outlined, color: Theme.of(context).colorScheme.tertiary),
396-
// Constrains size to fit line height.
394+
child: ConstrainedBox(
397395
constraints: const BoxConstraints(maxWidth: 24, minWidth: 24, maxHeight: 24, minHeight: 24),
398-
padding: EdgeInsets.zero,
399-
tooltip: context.t.workaroundRedirect,
400-
onPressed: hrefUrl != null ? () async => context.dispatchAsUrl(hrefUrl) : null,
396+
child: IconButton(
397+
icon: Icon(Icons.navigate_before_outlined, color: Theme.of(context).colorScheme.tertiary),
398+
// Constrains size to fit line height.
399+
constraints: const BoxConstraints(maxWidth: 24, minWidth: 24, maxHeight: 24, minHeight: 24),
400+
padding: EdgeInsets.zero,
401+
tooltip: context.t.workaroundRedirect,
402+
onPressed: hrefUrl != null ? () async => context.dispatchAsUrl(hrefUrl) : null,
403+
),
401404
),
402405
),
403406
];

0 commit comments

Comments
 (0)