From 73dae93c3fea97918e0022804f22637486905d07 Mon Sep 17 00:00:00 2001 From: aidil-coder-bot Date: Sat, 28 Mar 2026 06:18:11 +0100 Subject: [PATCH 1/2] hotfix: make math formulas, code blocks, and params table scrollable on mobile - MathFormula: add overflow-x auto + touch scrolling for KaTeX display - CodeBlock: ensure code-container and code-pre are properly scrollable - style.css: add mobile-specific overflow fixes for code, table blocks Fixes horizontal overflow on mobile for JSON responses, math formulas, and params tables --- src/components/CodeBlock.vue | 15 ++++++++++++--- src/components/MathFormula.vue | 18 ++++++++++++++++++ src/style.css | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 62 insertions(+), 3 deletions(-) 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; } From e132081e1e4e093ff9be2ae83230bfde434d4af8 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sat, 28 Mar 2026 05:19:59 +0000 Subject: [PATCH 2/2] chore: bump version to 1.5.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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": {