mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
[flutter]: fix overflow issue caused by long view name
This commit is contained in:
parent
4f41c8d3e5
commit
3f04c807f4
@ -69,9 +69,9 @@ class FlowyNavigation extends StatelessWidget {
|
|||||||
Selector<NavigationNotifier, List<NavigationItem>>(
|
Selector<NavigationNotifier, List<NavigationItem>>(
|
||||||
selector: (context, notifier) => notifier.navigationItems,
|
selector: (context, notifier) => notifier.navigationItems,
|
||||||
builder: (ctx, items, child) => Expanded(
|
builder: (ctx, items, child) => Expanded(
|
||||||
child: Wrap(
|
child: Row(
|
||||||
children: _renderNavigationItems(items),
|
children: _renderNavigationItems(items),
|
||||||
crossAxisAlignment: WrapCrossAlignment.start,
|
// crossAxisAlignment: WrapCrossAlignment.start,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -149,7 +149,7 @@ class NaviItemWidget extends StatelessWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return item.leftBarItem.padding(horizontal: 2, vertical: 2);
|
return Expanded(child: item.leftBarItem.padding(horizontal: 2, vertical: 2));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ class ViewSectionItem extends StatelessWidget {
|
|||||||
List<Widget> children = [
|
List<Widget> children = [
|
||||||
SizedBox(width: 16, height: 16, child: state.view.thumbnail()),
|
SizedBox(width: 16, height: 16, child: state.view.thumbnail()),
|
||||||
const HSpace(2),
|
const HSpace(2),
|
||||||
FlowyText.regular(state.view.name, fontSize: 12),
|
Expanded(child: FlowyText.regular(state.view.name, fontSize: 12)),
|
||||||
];
|
];
|
||||||
|
|
||||||
if (onHover || state.isEditing) {
|
if (onHover || state.isEditing) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user