optimized space for log columns

Massimo Melina committed Jan 6, 2023 at 19:37 UTC 4596af6359b4ab61e1e5d2e564d9e456da8948fb
1 file changed +7 -4
admin/src/LogsPage.ts
+7 -4
@@ -33,30 +33,33 @@ function LogFile({ file }: { file: string }) {
33 {
34 field: 'ip',
35 headerName: "Address",
36 - flex: 1,
36 + flex: .6,
37 minWidth: 100,
38 - maxWidth: 400,
38 + maxWidth: 230,
39 },
40 {
41 field: 'user',
42 headerName: "Username",
43 - flex: 1,
43 + flex: .4,
44 + maxWidth: 200,
45 },
46 {
47 field: 'ts',
48 headerName: "Timestamp",
49 type: 'dateTime',
49 - width: 200,
50 + width: 170,
51 valueFormatter: ({ value }) => new Date(value as string).toLocaleString()
52 },
53 {
54 field: 'method',
55 headerName: "Method",
56 + width: 80,
57 },
58 {
59 field: 'status',
60 headerName: "Code",
61 type: 'number',
62 + width: 70,
63 },
64 {
65 field: 'length',