From 058965f58e282586133f11cb2275b9bcec69341e Mon Sep 17 00:00:00 2001 From: syui Date: Fri, 23 Jan 2026 01:11:42 +0900 Subject: [PATCH] fix mobile layout tab pds select --- src/web/components/mode-tabs.ts | 4 ++-- src/web/styles/main.css | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) 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; }