fix: Minor padding bugs

This commit is contained in:
Krille Fear 2021-11-14 11:53:43 +01:00
parent f852abbb8d
commit c1cb91dc79
3 changed files with 10 additions and 5 deletions

View File

@ -127,6 +127,7 @@ class ChatView extends StatelessWidget {
context: context, future: () => controller.room.join());
}
final bottomSheetPadding = FluffyThemes.isColumnMode(context) ? 16.0 : 8.0;
final horizontalPadding = FluffyThemes.isColumnMode(context) ? 8.0 : 0.0;
return VWidgetGuard(
onSystemPop: (redirector) async {
@ -205,9 +206,11 @@ class ChatView extends StatelessWidget {
controller.filteredEvents[i].eventId] = i;
}
return ListView.custom(
padding: const EdgeInsets.only(
padding: EdgeInsets.only(
top: 16,
bottom: 4,
left: horizontalPadding,
right: horizontalPadding,
),
reverse: true,
controller: controller.scrollController,

View File

@ -143,7 +143,7 @@ class Message extends StatelessWidget {
),
Container(
alignment: alignment,
padding: const EdgeInsets.symmetric(horizontal: 8),
padding: const EdgeInsets.only(left: 8),
child: Material(
color: noBubble ? null : color,
elevation: noBubble ? 0 : 6,
@ -280,8 +280,10 @@ class Message extends StatelessWidget {
constraints:
const BoxConstraints(maxWidth: FluffyThemes.columnWidth * 2.5),
child: Padding(
padding: const EdgeInsets.only(
left: 8.0, right: 8.0, bottom: 4.0, top: 4.0),
padding: const EdgeInsets.symmetric(
horizontal: 8.0,
vertical: 4.0,
),
child: container,
),
),

View File

@ -33,7 +33,7 @@ class SeenByRow extends StatelessWidget {
Matrix.of(context).client.userID
? Alignment.topRight
: Alignment.topLeft,
padding: const EdgeInsets.only(left: 24, right: 24, bottom: 4),
padding: const EdgeInsets.only(left: 8, right: 8, bottom: 4),
child: Wrap(
spacing: 4,
children: [