Feat mobile nav (#4)

* Fixed displaying columns that arent defined (#2)
* Reworked layout for mobile support
This commit is contained in:
adroslice 2023-03-12 20:19:59 +01:00 committed by GitHub
parent b69cc43561
commit 0f306a7705
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 74 additions and 23 deletions

View file

@ -45,7 +45,7 @@ function toggleSorting(columnName: string) {
<tbody>
<!-- eslint-disable-next-line vue/require-v-for-key -->
<tr v-for="row of displayData">
<td v-for="cell in row" :key="cell" v-text="cell"/>
<td v-for="[column] in Object.entries(columns ?? {})" :key="column" v-text="row[column]"/>
</tr>
</tbody>
</table>