diff --git a/src/web/components/mode-tabs.ts b/src/web/components/mode-tabs.ts index d20a4d0..1aadb46 100644 --- a/src/web/components/mode-tabs.ts +++ b/src/web/components/mode-tabs.ts @@ -38,14 +38,14 @@ export function renderModeTabs(handle: string, activeTab: 'blog' | 'browser' | ' tabs += `link` } - tabs += ` + const pdsSelector = `
` - return `
${tabs}
` + return `
${tabs}
${pdsSelector}
` } // Render language selector (above content) diff --git a/src/web/styles/main.css b/src/web/styles/main.css index ff058a3..443624e 100644 --- a/src/web/styles/main.css +++ b/src/web/styles/main.css @@ -282,13 +282,21 @@ body { display: flex; gap: 4px; margin-bottom: 16px; + align-items: center; +} + +.tabs-scroll { + display: flex; + gap: 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none; + flex: 1; + min-width: 0; } -.mode-tabs::-webkit-scrollbar { +.tabs-scroll::-webkit-scrollbar { display: none; } @@ -331,7 +339,7 @@ body { border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); min-width: 180px; - z-index: 100; + z-index: 1000; overflow: hidden; }