From 17b04df09157653d355a7c24a0cd15d9e3327e53 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 13 May 2026 15:02:00 +0200 Subject: [PATCH] style(api-docs): rename visibleSections to visibleEndpoints, drop dead toc-stuck CSS MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - visibleSections counted endpoints, not sections — rename matches the displayed "X / Y endpoints" label. - .toc-nav.toc-stuck was never toggled by any code path. --- frontend/src/pages/api-docs/ApiDocsPage.vue | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/frontend/src/pages/api-docs/ApiDocsPage.vue b/frontend/src/pages/api-docs/ApiDocsPage.vue index a3078b8e..c53ae553 100644 --- a/frontend/src/pages/api-docs/ApiDocsPage.vue +++ b/frontend/src/pages/api-docs/ApiDocsPage.vue @@ -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(() => { - {{ visibleSections }} / {{ endpointCount }} endpoints + {{ visibleEndpoints }} / {{ endpointCount }} endpoints @@ -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;