Skip to content

Commit

Permalink
Add a new var chatSessionDetailsDrawerWidth to manage the width of …
Browse files Browse the repository at this point in the history
…the chat session details drawer
  • Loading branch information
JamesChenX committed Dec 14, 2024
1 parent 606992f commit a747945
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class ChatSessionDetailsDrawer extends StatelessWidget {
final theme = context.theme;
final appThemeExtension = theme.appThemeExtension;
return SizedBox(
width: Sizes.subNavigationRailWidth,
width: Sizes.chatSessionDetailsDrawerWidth,
height: double.infinity,
child: DecoratedBox(
decoration: BoxDecoration(
Expand Down
2 changes: 2 additions & 0 deletions turms-chat-demo-flutter/lib/ui/themes/sizes.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,8 @@ class Sizes {
static const chatSessionPaneFooterHeight = 240.0;
static const chatSessionPaneFooterMinHeight = 128.0;
static const chatSessionPaneFooterMaxHeight = 512.0;
static const chatSessionDetailsDrawerWidth = subNavigationRailWidth;

static const chatHistoryDialogWidth = 696.0;
static const chatHistoryDialogHeight = 640.0;

Expand Down

0 comments on commit a747945

Please sign in to comment.