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

View File

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

View File

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