|
28 | 28 | {% endif %} |
29 | 29 |
|
30 | 30 | {% if get('tab') == 'slowlog' %} |
31 | | - <div class="rounded-md bg-white border border-gray-200 dark:bg-gray-800 dark:border-gray-700"> |
32 | | - <div class="px-6 py-4 md:flex justify-between"> |
33 | | - <div class="md:flex gap-1 items-center"> |
34 | | - <form method="post" class="md:flex gap-1"> |
| 31 | + <div class="bg-white rounded-md border border-gray-200 dark:bg-gray-800 dark:border-gray-700"> |
| 32 | + <div class="justify-between py-4 px-6 md:flex"> |
| 33 | + <div class="gap-1 items-center md:flex"> |
| 34 | + <form method="post" class="gap-1 md:flex"> |
35 | 35 | {{ include('components/input.twig', { |
36 | 36 | id: 'slowlog_max_items', |
37 | 37 | label: 'Display items', |
|
56 | 56 | <div class="text-xs">This will change the config value. Default is 128 items and 10 000 μs.</div> |
57 | 57 | </div> |
58 | 58 |
|
59 | | - <div class="md:flex gap-1"> |
| 59 | + <div class="gap-1 md:flex"> |
60 | 60 | {{ include('components/button.twig', { |
61 | 61 | text: 'Reset', |
62 | 62 | link: link(['tab'], {'resetlog': 1}), |
|
66 | 66 | </div> |
67 | 67 |
|
68 | 68 | <div class="overflow-hidden overflow-x-auto"> |
69 | | - <table class="w-full table-auto text-left dark:text-gray-300"> |
| 69 | + <table class="w-full text-left table-auto dark:text-gray-300"> |
70 | 70 | <thead> |
71 | | - <tr class="text-primary-900 border-t border-b border-gray-200 dark:border-gray-700 dark:text-primary-400"> |
72 | | - <th class="px-6 py-2 text-xs font-bold uppercase">ID</th> |
73 | | - <th class="px-6 py-2 text-xs font-bold uppercase">Timestamp</th> |
74 | | - <th class="px-6 py-2 text-xs font-bold uppercase">Duration</th> |
75 | | - <th class="px-6 py-2 text-xs font-bold uppercase">Command</th> |
| 71 | + <tr class="border-t border-b border-gray-200 dark:border-gray-700 text-primary-900 dark:text-primary-400"> |
| 72 | + <th class="py-2 px-6 text-xs font-bold uppercase">ID</th> |
| 73 | + <th class="py-2 px-6 text-xs font-bold uppercase">Timestamp</th> |
| 74 | + <th class="py-2 px-6 text-xs font-bold uppercase">Duration</th> |
| 75 | + <th class="py-2 px-6 text-xs font-bold uppercase">Command</th> |
76 | 76 | </tr> |
77 | 77 | </thead> |
78 | 78 | <tbody> |
79 | 79 | {% for item in slowlog.items %} |
80 | 80 | <tr class="hover:bg-gray-50 dark:hover:bg-white/5"> |
81 | | - <td class="px-6 py-2 border-t border-gray-200 text-sm dark:border-gray-700 dark:text-gray-300">{{ item[0] }}</td> |
82 | | - <td class="px-6 py-2 border-t border-gray-200 text-sm dark:border-gray-700 dark:text-gray-300">{{ item[1]|time }}</td> |
83 | | - <td class="px-6 py-2 border-t border-gray-200 text-sm dark:border-gray-700 dark:text-gray-300">{{ item[2] }}μs</td> |
84 | | - <td class="px-6 py-2 border-t border-gray-200 text-sm dark:border-gray-700 dark:text-gray-300">{{ item[3]|join(' ') }}</td> |
| 81 | + <td class="py-2 px-6 text-sm border-t border-gray-200 dark:text-gray-300 dark:border-gray-700">{{ item[0] }}</td> |
| 82 | + <td class="py-2 px-6 text-sm border-t border-gray-200 dark:text-gray-300 dark:border-gray-700">{{ item[1]|time }}</td> |
| 83 | + <td class="py-2 px-6 text-sm border-t border-gray-200 dark:text-gray-300 dark:border-gray-700">{{ item[2] }}μs</td> |
| 84 | + <td class="py-2 px-6 text-sm border-t border-gray-200 dark:text-gray-300 dark:border-gray-700">{{ item[3]|join(' ') }}</td> |
85 | 85 | </tr> |
86 | 86 | {% else %} |
87 | 87 | <tr class="hover:bg-gray-50 dark:hover:bg-white/5"> |
88 | | - <td colspan="4" class="px-6 py-2 border-t border-gray-200 text-sm dark:border-gray-700 dark:text-gray-300 text-center">No items.</td> |
| 88 | + <td colspan="4" class="py-2 px-6 text-sm text-center border-t border-gray-200 dark:text-gray-300 dark:border-gray-700">No items.</td> |
89 | 89 | </tr> |
90 | 90 | {% endfor %} |
91 | 91 | </tbody> |
|
0 commit comments