top-align sidebar and context panel content
Side panel content was vertically centered by Container's default alignment. Added Alignment.topLeft so file tree, viewer, and other panel content docks to the top. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -299,6 +299,7 @@ class _SidebarSlot extends StatelessWidget {
|
|||||||
final tokens = ClideTheme.of(context).surface;
|
final tokens = ClideTheme.of(context).surface;
|
||||||
return Container(
|
return Container(
|
||||||
color: tokens.sidebarBackground,
|
color: tokens.sidebarBackground,
|
||||||
|
alignment: Alignment.topLeft,
|
||||||
child: active.build(context),
|
child: active.build(context),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -414,6 +415,7 @@ class _ContextSlot extends StatelessWidget {
|
|||||||
final tokens = ClideTheme.of(context).surface;
|
final tokens = ClideTheme.of(context).surface;
|
||||||
return Container(
|
return Container(
|
||||||
color: tokens.panelBackground,
|
color: tokens.panelBackground,
|
||||||
|
alignment: Alignment.topLeft,
|
||||||
child: active.build(context),
|
child: active.build(context),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user