Skip to content

Commit

Permalink
fix: padding and icon color
Browse files Browse the repository at this point in the history
  • Loading branch information
squidrye committed Nov 15, 2023
1 parent 24b6bf9 commit 563b362
Showing 1 changed file with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ class HomeTopBar extends StatelessWidget {
child: Consumer(
builder: (_, PageNotifier notifier, __) =>
notifier.plugin.widgetBuilder.rightBarItem ??
const SizedBox.shrink(),
const SizedBox(),
),
),
BlocBuilder<PanesBloc, PanesState>(
Expand All @@ -310,12 +310,14 @@ class HomeTopBar extends StatelessWidget {
return const SizedBox.shrink();
}

return FlowyIconButton(
onPressed: () =>
context.read<PanesBloc>().add(ClosePane(paneId: paneId)),
icon: FlowySvg(
FlowySvgs.close_s,
color: Theme.of(context).iconTheme.color,
return Padding(
padding: const EdgeInsets.all(2),
child: FlowyIconButton(
iconColorOnHover: Theme.of(context).colorScheme.onSurface,
onPressed: () => context
.read<PanesBloc>()
.add(ClosePane(paneId: paneId)),
icon: const FlowySvg(FlowySvgs.close_s),
),
);
},
Expand Down

0 comments on commit 563b362

Please sign in to comment.