Restore local chat layouts and add compact or hidden chat sidebar

This commit is contained in:
2026-11-06 19:16:18 +00:00
parent 8a7b704940
commit 9a0d5de26a
9 changed files with 834 additions and 16 deletions
@@ -91,6 +91,7 @@ class ChatThreadView extends StatefulWidget {
this.onColorSelected,
this.onNextChat,
this.paneControls = const [],
this.sidebarControl,
this.showBackButton,
});
@@ -100,6 +101,7 @@ class ChatThreadView extends StatefulWidget {
/// the bar's Next chat button; null when there is no other chat to open.
final VoidCallback? onNextChat;
final List<Widget> paneControls;
final Widget? sidebarControl;
final bool? showBackButton;
/// Sets the chat's shared colour (a palette name, null for none) from the
@@ -1206,6 +1208,7 @@ class _ChatThreadViewState extends State<ChatThreadView> {
// would take more than half the pill. A session without a mode draws
// no mode control, so no empty pill is ever drawn.
controls: [
?widget.sidebarControl,
...widget.paneControls,
if (hasModel)
ChatModelControl(