diff --git a/package.json b/package.json index 9fec0bf..1ea5919 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pico-api-docs", - "version": "1.5.0", + "version": "1.5.1", "description": "PICO SulTeng API Documentation - COVID-19 Sulawesi Tengah Data API", "main": "index.js", "scripts": { diff --git a/src/components/CodeBlock.vue b/src/components/CodeBlock.vue index 1d279d2..afea03d 100644 --- a/src/components/CodeBlock.vue +++ b/src/components/CodeBlock.vue @@ -265,8 +265,10 @@ onMounted(() => { diff --git a/src/style.css b/src/style.css index f95c499..6122d78 100644 --- a/src/style.css +++ b/src/style.css @@ -108,6 +108,38 @@ body { * { animation: none !important; transition-duration: 0.01ms !important; } } +/* Mobile overflow fixes */ +@media (max-width: 768px) { + /* Ensure code blocks are scrollable on mobile */ + .code-block-wrapper, + .code-container, + .code-panel, + .code-panel pre { + overflow-x: auto !important; + -webkit-overflow-scrolling: touch; + max-width: 100%; + } + + /* Ensure params table is scrollable */ + .params-table { + display: block; + overflow-x: auto; + -webkit-overflow-scrolling: touch; + white-space: nowrap; + } + + .params-table td, + .params-table th { + white-space: normal; + min-width: 80px; + } + + .params-table td:last-child { + min-width: 150px; + white-space: normal; + } +} + /* Dark mode code syntax colors */ .token-string { color: #a3e4c9; } .token-number { color: #f97316; }