Skip to content

Commit

Permalink
Merge pull request #680 from pangeachat/handle-header-overflow
Browse files Browse the repository at this point in the history
fixed height of toolbar
  • Loading branch information
ggurdin authored Sep 13, 2024
2 parents 82c95e4 + 0984df4 commit d0bc47d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/config/app_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class AppConfig {
static const double messageFontSize = 16.0;
static const bool allowOtherHomeservers = true;
static const bool enableRegistration = true;
static const double toolbarMaxHeight = 315.0;
static const double toolbarMaxHeight = 300.0;
// #Pangea
// static const Color primaryColor = Color(0xFF5625BA);
// static const Color primaryColorLight = Color(0xFFCCBDEA);
Expand Down
16 changes: 8 additions & 8 deletions lib/pangea/widgets/chat/message_toolbar.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'dart:async';

import 'package:fluffychat/config/app_config.dart';
import 'package:fluffychat/config/themes.dart';
import 'package:fluffychat/pages/chat/chat.dart';
import 'package:fluffychat/pangea/enum/message_mode_enum.dart';
Expand Down Expand Up @@ -239,7 +240,12 @@ class MessageToolbarState extends State<MessageToolbar> {
.key,
type: MaterialType.transparency,
child: Container(
padding: const EdgeInsets.all(10),
constraints: const BoxConstraints(
maxHeight: AppConfig.toolbarMaxHeight,
maxWidth: 275,
minWidth: 275,
),
padding: const EdgeInsets.fromLTRB(20, 20, 20, 10),
decoration: BoxDecoration(
color: Theme.of(context).cardColor,
border: Border.all(
Expand All @@ -254,13 +260,7 @@ class MessageToolbarState extends State<MessageToolbar> {
mainAxisSize: MainAxisSize.min,
children: [
if (toolbarContent != null)
Container(
padding: const EdgeInsets.fromLTRB(8, 8, 8, 16),
constraints: const BoxConstraints(
maxWidth: 275,
minWidth: 275,
maxHeight: 250,
),
Flexible(
child: SingleChildScrollView(
child: AnimatedSize(
duration: FluffyThemes.animationDuration,
Expand Down

0 comments on commit d0bc47d

Please sign in to comment.