Skip to content

Commit

Permalink
fix: pages overflow when selecting homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Nov 3, 2024
1 parent 1b9b2a5 commit 26a0a6d
Showing 1 changed file with 21 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,28 @@ class _SelectHomePageMenuState extends State<SelectHomePageMenu> {
onSearch: (context, value) => _onSearch(value),
),
const VSpace(10),
...views.map(
(view) => Padding(
padding: const EdgeInsets.symmetric(vertical: 4.0),
child: PublishInfoViewItem(
publishInfoView: view,
useIntrinsicWidth: false,
onTap: () {
context.read<SettingsSitesBloc>().add(
SettingsSitesEvent.setHomePage(view.info.viewId),
);
Expanded(
child: SingleChildScrollView(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
...views.map(
(view) => Padding(
padding: const EdgeInsets.symmetric(vertical: 4.0),
child: PublishInfoViewItem(
publishInfoView: view,
useIntrinsicWidth: false,
onTap: () {
context.read<SettingsSitesBloc>().add(
SettingsSitesEvent.setHomePage(view.info.viewId),
);

PopoverContainer.of(context).close();
},
PopoverContainer.of(context).close();
},
),
),
),
],
),
),
),
Expand Down

0 comments on commit 26a0a6d

Please sign in to comment.