We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b702763 commit 1337735Copy full SHA for 1337735
packages/docusaurus-theme-openapi-docs/src/theme/ApiExplorer/CodeTabs/index.tsx
@@ -59,8 +59,12 @@ function TabList({
59
const activeTabRect = activeTab.getBoundingClientRect();
60
61
// Calculate the distance to scroll to align active tab to the left
62
+ const glowOffset = 3;
63
const scrollOffset =
- activeTabRect.left - containerRect.left + container.scrollLeft;
64
+ activeTabRect.left -
65
+ containerRect.left +
66
+ container.scrollLeft -
67
+ glowOffset;
68
69
// Check if the active tab is not already at the left position
70
0 commit comments