ui: make the sidebar rows compact again
Both the project band and the session rows are dense 56px list tiles now (measured 54), down from 72. Session titles are 14 and project names 14.5, so the list stays readable while the hierarchy keeps its tinted band. The project + and the session ⋮ still share one vertical line. 0.3.21 (321).
This commit is contained in:
1 parent
73af9d851b
commit
ff0dbf1b37
5 files changed
+23
-4
No files matched your search
@@ -307,6 +307,9 @@ class _SessionListPaneState extends State<SessionListPane> {
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
clipBehavior: Clip.antiAlias,
|
||||
child: ListTile(
|
||||
// Compact like a session row: two dense lines in a 56px band.
|
||||
dense: true,
|
||||
minTileHeight: 56,
|
||||
// The band already insets by 8. A Material 3 list tile ends at 24
|
||||
// (start 16), so 16 here makes the + line up with the session
|
||||
// rows' ⋮.
|
||||
@@ -325,7 +328,7 @@ class _SessionListPaneState extends State<SessionListPane> {
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 15,
|
||||
fontSize: 14.5,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: scheme.onSurface,
|
||||
),
|
||||
@@ -514,6 +517,9 @@ class _SessionListPaneState extends State<SessionListPane> {
|
||||
],
|
||||
),
|
||||
child: ListTile(
|
||||
// Compact: both the project band and a session row are 56 high.
|
||||
dense: true,
|
||||
minTileHeight: 56,
|
||||
selected: selected,
|
||||
selectedTileColor: scheme.primary.withValues(alpha: 0.10),
|
||||
title: Text(
|
||||
@@ -521,6 +527,7 @@ class _SessionListPaneState extends State<SessionListPane> {
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: selected ? FontWeight.w600 : FontWeight.w400,
|
||||
),
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user