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 {
21 21
22const props = defineProps<{ 22const props = defineProps<{
23 sites: Site[] 23 sites: Site[]
24 cornerLabel?: string
24}>() 25}>()
25 26
26function normalizeScrapeValue(value: ScrapeValue): NormalizedScrapeValue { 27function normalizeScrapeValue(value: ScrapeValue): NormalizedScrapeValue {
@@ -143,7 +144,7 @@ onMounted(() => {
143 </colgroup> 144 </colgroup>
144 <thead> 145 <thead>
145 <tr> 146 <tr>
146 <th class="corner">Sources</th> 147 <th class="corner">{{ cornerLabel ?? 'Sources' }}</th>
147 <th v-for="source in sources" :key="source" class="source-header"> 148 <th v-for="source in sources" :key="source" class="source-header">
148 <span>{{ source }}</span> 149 <span>{{ source }}</span>
149 </th> 150 </th>
@@ -205,4 +206,4 @@ onMounted(() => {
205 0%, 100% { opacity: 0.5; transform: translateX(0); } 206 0%, 100% { opacity: 0.5; transform: translateX(0); }
206 50% { opacity: 1; transform: translateX(4px); } 207 50% { opacity: 1; transform: translateX(4px); }
207} 208}
208</style> 209</style>\ No newline at end of file