fix: Chat layout

This commit is contained in:
Christian Pauly 2021-05-24 11:22:03 +02:00
commit 944d5de68b
2 changed files with 11 additions and 18 deletions

View file

@ -210,13 +210,17 @@ class Message extends StatelessWidget {
container = row;
}
return Container(
color: selected
? Theme.of(context).primaryColor.withAlpha(100)
: Theme.of(context).primaryColor.withAlpha(0),
child: Padding(
padding: EdgeInsets.only(left: 8.0, right: 8.0, bottom: 4.0, top: 4.0),
child: container,
return Center(
child: Container(
color: selected
? Theme.of(context).primaryColor.withAlpha(100)
: Theme.of(context).primaryColor.withAlpha(0),
constraints: BoxConstraints(maxWidth: FluffyThemes.columnWidth * 2.5),
child: Padding(
padding:
EdgeInsets.only(left: 8.0, right: 8.0, bottom: 4.0, top: 4.0),
child: container,
),
),
);
}