Make UI responsive
This commit is contained in:
@@ -2,10 +2,11 @@
|
||||
class="mb-4 text-4xl font-extrabold leading-none tracking-tight text-gray-900 md:text-5xl lg:text-6xl dark:text-white text-center">
|
||||
{{last_cadence}} rpm</h1>
|
||||
|
||||
<img type="image/svg+xml" src={{graph_data|safe}} class="w-full h-1/4" />
|
||||
<div class="lg:flex">
|
||||
<img type="image/svg+xml" src={{graph_data|safe}} class="lg:w-3/4 sm:w-full h-1/4" />
|
||||
|
||||
<div class="relative overflow-x-auto">
|
||||
<table class="w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
||||
<table class="lg:w-1/4 sm:w-full text-sm text-left text-gray-500 dark:text-gray-400">
|
||||
<thead class="text-xs text-gray-700 uppercase bg-gray-50 dark:bg-gray-700 dark:text-gray-400">
|
||||
<tr>
|
||||
<th scope="col" class="px-6 py-3">
|
||||
@@ -14,10 +15,6 @@
|
||||
<th scope="col" class="px-6 py-3">
|
||||
RPM
|
||||
</th>
|
||||
<th scope="col" class="px-6 py-3">
|
||||
Device Id
|
||||
</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -29,11 +26,9 @@
|
||||
<td class="px-6 py-4">
|
||||
{{c['rpm']}}
|
||||
</td>
|
||||
<td class="px-6 py-4">
|
||||
{{c['device_id']}}
|
||||
</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user