style(api-docs): rename visibleSections to visibleEndpoints, drop dead toc-stuck CSS

- visibleSections counted endpoints, not sections — rename matches
  the displayed "X / Y endpoints" label.
- .toc-nav.toc-stuck was never toggled by any code path.
This commit is contained in:
MHSanaei 2026-05-13 15:02:00 +02:00
parent 29609378dd
commit 17b04df091
No known key found for this signature in database
GPG key ID: 7E4060F2FBE5AB7A

View file

@ -81,7 +81,7 @@ const endpointCount = computed(() =>
allSections.reduce((sum, s) => sum + s.endpoints.length, 0)
);
const visibleSections = computed(() =>
const visibleEndpoints = computed(() =>
sections.value.reduce((sum, s) => sum + s.endpoints.length, 0)
);
@ -246,7 +246,7 @@ onBeforeUnmount(() => {
<template #prefix><SearchOutlined /></template>
</a-input-search>
<span class="match-count" v-if="searchQuery">
{{ visibleSections }} / {{ endpointCount }} endpoints
{{ visibleEndpoints }} / {{ endpointCount }} endpoints
</span>
<a-space size="small">
<a-button size="small" @click="expandAll">
@ -459,10 +459,6 @@ onBeforeUnmount(() => {
margin-bottom: 16px;
}
.toc-nav.toc-stuck {
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.toc-label {
font-size: 11px;
font-weight: 600;