Skip to content

Commit abd09a1

Browse files
committed
Vuetify for coins list
1 parent e27b1a2 commit abd09a1

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

frontend/src/components/CoinListView.vue

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,23 @@ function generateDescription( coin_data ) {
5656
</script>
5757

5858
<template>
59-
<div>
60-
<table>
61-
<tr v-for="coin_data in coins_list">
62-
<td class="image" :data-id="coin_data[0]"><img :src="arrayBufferToBase64(coin_data[1])"></td>
63-
<td class="data">
64-
<div class="title">
65-
{{ coin_data[2] }}&nbsp;
66-
</div>
67-
<div class="description">
68-
{{ generateDescription(coin_data).join(', ') }}&nbsp;
69-
</div>
70-
</td>
71-
<td>{{ coin_data[3] }}</td>
72-
</tr>
73-
</table>
74-
</div>
59+
<v-container>
60+
<v-list lines="two">
61+
<v-list-item
62+
v-for="coin in coins_list"
63+
:key="coin[0]"
64+
:subtitle="generateDescription(coin).join(', ')"
65+
:title="coin[2]"
66+
>
67+
<template v-slot:prepend>
68+
<v-img :src="arrayBufferToBase64(coin[1])" :width="100" />
69+
</template>
70+
<template v-slot:append>
71+
{{ coin[3] }}
72+
</template>
73+
</v-list-item>
74+
</v-list>
75+
</v-container>
7576
</template>
7677

7778
<style scoped>

0 commit comments

Comments
 (0)