mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 20:54:14 +00:00
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:
parent
29609378dd
commit
17b04df091
1 changed files with 2 additions and 6 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue