Skip to content

Commit 7fbaab8

Browse files
committed
Add commas to table and justify it left on the page
1 parent 39eb957 commit 7fbaab8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

frontend/app/pages/docs/server/available-data.vue

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{{ $t("i18n._global.available_data") }}
1010
</h1>
1111
<p>{{ $t("i18n.pages.docs.server.available_data.table_description") }}</p>
12-
<div class="my-6 flex justify-center">
12+
<div class="my-6 flex">
1313
<div class="w-full max-w-4xl overflow-x-auto">
1414
<table class="min-w-full divide-y divide-distinct-text">
1515
<thead class="bg-highlight">
@@ -37,10 +37,10 @@
3737
{{ item.language_name }}
3838
</td>
3939
<td class="whitespace-nowrap px-6 py-4 text-primary-text">
40-
{{ item.nouns }}
40+
{{ item.nouns.toLocaleString() }}
4141
</td>
4242
<td class="whitespace-nowrap px-6 py-4 text-primary-text">
43-
{{ item.verbs }}
43+
{{ item.verbs.toLocaleString() }}
4444
</td>
4545
</tr>
4646
</tbody>
@@ -53,7 +53,11 @@
5353
<script setup lang="ts">
5454
import { onMounted, ref } from "vue";
5555
56-
type LanguageDataStat = Record<string, unknown>;
56+
interface LanguageDataStat {
57+
language_name: string;
58+
nouns: number;
59+
verbs: number;
60+
}
5761
5862
const languageData = ref<LanguageDataStat[]>([]);
5963
const error = ref<string | null>(null);

0 commit comments

Comments
 (0)