Small visual changes

This commit is contained in:
shilangyu 2021-02-18 13:14:03 +01:00
parent c8124e4ffc
commit 8464fe4146
1 changed files with 25 additions and 21 deletions

View File

@ -85,11 +85,11 @@ class ModlogPage extends HookWidget {
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
OutlinedButton(
TextButton(
onPressed: page.value != 1 ? () => page.value-- : null,
child: const Icon(Icons.skip_previous),
),
OutlinedButton(
TextButton(
onPressed: isDone.value ? null : () => page.value++,
child: const Icon(Icons.skip_next),
),
@ -355,26 +355,30 @@ class _ModlogTable extends StatelessWidget {
]..sort((a, b) => b.when.compareTo(a.when));
return SingleChildScrollView(
padding: const EdgeInsets.all(8),
scrollDirection: Axis.horizontal,
child: Table(
border: TableBorder.all(),
columnWidths: const {
0: FixedColumnWidth(100),
1: FixedColumnWidth(150),
2: FixedColumnWidth(400),
3: FixedColumnWidth(200),
},
children: [
const TableRow(
children: [
Center(child: Text('when')),
Center(child: Text('mod')),
Center(child: Text('action')),
Center(child: Text('reason')),
],
),
for (final modlogEntry in modlogEntries) modlogEntry.build(context)
],
child: SizedBox(
width: 1000,
child: Table(
border: TableBorder.all(),
columnWidths: const {
0: FixedColumnWidth(80),
1: FixedColumnWidth(200),
2: FlexColumnWidth(),
3: FixedColumnWidth(200),
},
children: [
const TableRow(
children: [
Center(child: Text('when')),
Center(child: Text('mod')),
Center(child: Text('action')),
Center(child: Text('reason')),
],
),
for (final modlogEntry in modlogEntries) modlogEntry.build(context)
],
),
),
);
}