Skip to content

Commit

Permalink
[Fix] add right padding to navItem of desktop version
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Jul 29, 2024
1 parent 1c4e7e2 commit 6a5f107
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/desktop/comps/navigation_column.dart
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class _NavGroupState extends State<NavGroup> {
secondChild: Column(
children: widget.items.map((e) {
return Padding(
padding: const EdgeInsets.only(left: 26),
padding: const EdgeInsets.only(left: 26, right: 10),
child: NavItem(
title: e.title,
icon: e.icon,
Expand Down Expand Up @@ -405,10 +405,12 @@ class _NavItemState extends State<NavItem> {
Expanded(
child: Text(
widget.title,
maxLines: 2,
style: TextStyle(
color: isDarkMode
? CupertinoColors.white
: CupertinoColors.black,
overflow: TextOverflow.ellipsis,
fontSize: 13,
).useSystemChineseFont(),
),
Expand Down

0 comments on commit 6a5f107

Please sign in to comment.