mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-06 13:14:11 +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)
|
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)
|
sections.value.reduce((sum, s) => sum + s.endpoints.length, 0)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
@ -246,7 +246,7 @@ onBeforeUnmount(() => {
|
||||||
<template #prefix><SearchOutlined /></template>
|
<template #prefix><SearchOutlined /></template>
|
||||||
</a-input-search>
|
</a-input-search>
|
||||||
<span class="match-count" v-if="searchQuery">
|
<span class="match-count" v-if="searchQuery">
|
||||||
{{ visibleSections }} / {{ endpointCount }} endpoints
|
{{ visibleEndpoints }} / {{ endpointCount }} endpoints
|
||||||
</span>
|
</span>
|
||||||
<a-space size="small">
|
<a-space size="small">
|
||||||
<a-button size="small" @click="expandAll">
|
<a-button size="small" @click="expandAll">
|
||||||
|
|
@ -459,10 +459,6 @@ onBeforeUnmount(() => {
|
||||||
margin-bottom: 16px;
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.toc-nav.toc-stuck {
|
|
||||||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
|
|
||||||
}
|
|
||||||
|
|
||||||
.toc-label {
|
.toc-label {
|
||||||
font-size: 11px;
|
font-size: 11px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue