Commit c0e3c299f8

c0e3c299f80873033b474565c90aa9b9a0bdd430

parent: 4126561cd4

Unsigned

Duck <57977673+woducku@users.noreply.github.com> · 2026-05-05 05:56 UTC

Customizable corner label for tables

Layout: unified · split

docs/.vitepress/theme/components/ScrapeTable.vue +3 −2
@@ -21,6 +21,7 @@ interface Site {
2121
2222const props = defineProps<{
2323 sites: Site[]
24 cornerLabel?: string
2425}>()
2526
2627function normalizeScrapeValue(value: ScrapeValue): NormalizedScrapeValue {
@@ -143,7 +144,7 @@ onMounted(() => {
143144 </colgroup>
144145 <thead>
145146 <tr>
146 <th class="corner">Sources</th>
147 <th class="corner">{{ cornerLabel ?? 'Sources' }}</th>
147148 <th v-for="source in sources" :key="source" class="source-header">
148149 <span>{{ source }}</span>
149150 </th>
@@ -205,4 +206,4 @@ onMounted(() => {
205206 0%, 100% { opacity: 0.5; transform: translateX(0); }
206207 50% { opacity: 1; transform: translateX(4px); }
207208}
208</style>
209</style>
\ No newline at end of file