feat: Limit height of text messages and expand if selected
This commit is contained in:
parent
4739ea42fa
commit
d4f1381a26
3 changed files with 8 additions and 0 deletions
|
|
@ -30,6 +30,7 @@ class MessageContent extends StatelessWidget {
|
|||
final void Function(Event)? onInfoTab;
|
||||
final BorderRadius borderRadius;
|
||||
final Timeline timeline;
|
||||
final bool selected;
|
||||
|
||||
const MessageContent(
|
||||
this.event, {
|
||||
|
|
@ -39,6 +40,7 @@ class MessageContent extends StatelessWidget {
|
|||
required this.textColor,
|
||||
required this.linkColor,
|
||||
required this.borderRadius,
|
||||
required this.selected,
|
||||
});
|
||||
|
||||
void _verifyOrRequestKey(BuildContext context) async {
|
||||
|
|
@ -269,6 +271,7 @@ class MessageContent extends StatelessWidget {
|
|||
textColor: textColor,
|
||||
room: event.room,
|
||||
fontSize: AppConfig.fontSizeFactor * AppConfig.messageFontSize,
|
||||
limitHeight: !selected,
|
||||
linkStyle: TextStyle(
|
||||
color: linkColor,
|
||||
fontSize:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue