diff --git a/package.json b/package.json index 1ea5919..57e8b6e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pico-api-docs", - "version": "1.5.1", + "version": "1.5.2", "description": "PICO SulTeng API Documentation - COVID-19 Sulawesi Tengah Data API", "main": "index.js", "scripts": { diff --git a/src/components/ApiSection.vue b/src/components/ApiSection.vue index ef560b4..bac9862 100644 --- a/src/components/ApiSection.vue +++ b/src/components/ApiSection.vue @@ -2,9 +2,9 @@
-
- {{ method }} - {{ endpoint }} +
+ {{ method }} + {{ endpoint }}

{{ description }}

diff --git a/src/components/CodeBlock.vue b/src/components/CodeBlock.vue index afea03d..9fcb429 100644 --- a/src/components/CodeBlock.vue +++ b/src/components/CodeBlock.vue @@ -267,7 +267,7 @@ onMounted(() => { .code-block-wrapper { @apply rounded-lg my-4 transition-colors duration-200; @apply border border-gray-200 bg-white dark:border-gray-700 dark:bg-gray-900; - overflow: hidden; /* keep border-radius clipping */ + overflow-x: auto; /* allow horizontal scroll */ max-width: 100%; } diff --git a/src/components/ParamsTable.vue b/src/components/ParamsTable.vue index 3345f51..dbcf83d 100644 --- a/src/components/ParamsTable.vue +++ b/src/components/ParamsTable.vue @@ -1,7 +1,7 @@ - + @@ -125,7 +126,7 @@
-
+
@@ -184,7 +185,7 @@
-
+

{{ t('documentation.glossary.reproductionRate.practicalExample.step3.detailedCalculations.lowerBoundStep.title') }}

{{ t('documentation.glossary.reproductionRate.practicalExample.step3.detailedCalculations.lowerBoundStep.formula') }}

@@ -273,7 +274,7 @@
-
+

{{ t('documentation.glossary.caseClassifications.title') }}

diff --git a/src/components/documentation/HealthCheckSection.vue b/src/components/documentation/HealthCheckSection.vue index 2aeaf9b..f29afb7 100644 --- a/src/components/documentation/HealthCheckSection.vue +++ b/src/components/documentation/HealthCheckSection.vue @@ -5,7 +5,7 @@

{{ t('documentation.healthCheck.description') }}

-
+
diff --git a/src/components/documentation/HospitalsSection.vue b/src/components/documentation/HospitalsSection.vue index 389960f..58091db 100644 --- a/src/components/documentation/HospitalsSection.vue +++ b/src/components/documentation/HospitalsSection.vue @@ -6,7 +6,7 @@
-
+
GET @@ -66,7 +66,7 @@
-
+
GET diff --git a/src/components/documentation/NationalHistoricalSection.vue b/src/components/documentation/NationalHistoricalSection.vue index b371d92..6cc07b3 100644 --- a/src/components/documentation/NationalHistoricalSection.vue +++ b/src/components/documentation/NationalHistoricalSection.vue @@ -26,7 +26,7 @@
-
+
GET diff --git a/src/components/documentation/NationalLatestSection.vue b/src/components/documentation/NationalLatestSection.vue index 9220742..0f97c5f 100644 --- a/src/components/documentation/NationalLatestSection.vue +++ b/src/components/documentation/NationalLatestSection.vue @@ -5,7 +5,7 @@

{{ t('documentation.nationalLatest.description') }}

-
+
diff --git a/src/components/documentation/OverviewSection.vue b/src/components/documentation/OverviewSection.vue index 514bc10..11b429c 100644 --- a/src/components/documentation/OverviewSection.vue +++ b/src/components/documentation/OverviewSection.vue @@ -14,7 +14,7 @@
-
+

{{ t('documentation.overview.gettingStarted') }}

{{ t('documentation.overview.gettingStartedSub') }}

diff --git a/src/components/documentation/ProvinceCasesSection.vue b/src/components/documentation/ProvinceCasesSection.vue index 7e1bfa6..3230a8d 100644 --- a/src/components/documentation/ProvinceCasesSection.vue +++ b/src/components/documentation/ProvinceCasesSection.vue @@ -5,7 +5,7 @@

{{ t('documentation.provinceCases.description') }}

-
+

{{ t('documentation.provinceCases.endpoints') }}

{{ t('documentation.provinceCases.description') }}

diff --git a/src/components/documentation/ProvincesSection.vue b/src/components/documentation/ProvincesSection.vue index 90f6c24..d3771cb 100644 --- a/src/components/documentation/ProvincesSection.vue +++ b/src/components/documentation/ProvincesSection.vue @@ -5,7 +5,7 @@

{{ t('documentation.provinces.description') }}

-
+

{{ t('documentation.provinces.endpoint') }}

{{ t('documentation.provinces.description') }}

diff --git a/src/components/documentation/RegenciesSection.vue b/src/components/documentation/RegenciesSection.vue index 9f1132c..419f72d 100644 --- a/src/components/documentation/RegenciesSection.vue +++ b/src/components/documentation/RegenciesSection.vue @@ -6,7 +6,7 @@
-
+
GET @@ -65,7 +65,7 @@
-
+
GET @@ -99,7 +99,7 @@
-
+
GET diff --git a/src/components/documentation/RootEndpointSection.vue b/src/components/documentation/RootEndpointSection.vue index 83f5c38..55b8a1e 100644 --- a/src/components/documentation/RootEndpointSection.vue +++ b/src/components/documentation/RootEndpointSection.vue @@ -5,7 +5,7 @@

{{ t('documentation.rootEndpoint.description') }}

-
+
diff --git a/src/components/documentation/StatisticsSection.vue b/src/components/documentation/StatisticsSection.vue index 6b837d7..933ec9c 100644 --- a/src/components/documentation/StatisticsSection.vue +++ b/src/components/documentation/StatisticsSection.vue @@ -6,7 +6,7 @@
-
+
GET @@ -28,7 +28,7 @@
-
+
GET @@ -52,7 +52,7 @@
-
+
GET @@ -74,7 +74,7 @@
-
+
GET diff --git a/src/components/documentation/TaskForcesSection.vue b/src/components/documentation/TaskForcesSection.vue index c6ead1a..8d3d8e6 100644 --- a/src/components/documentation/TaskForcesSection.vue +++ b/src/components/documentation/TaskForcesSection.vue @@ -5,7 +5,7 @@

{{ t('documentation.taskForces.description') }}

-
+
GET diff --git a/src/components/documentation/VaccinationSection.vue b/src/components/documentation/VaccinationSection.vue index dd43dc3..97ed8db 100644 --- a/src/components/documentation/VaccinationSection.vue +++ b/src/components/documentation/VaccinationSection.vue @@ -6,7 +6,7 @@
-
+
GET @@ -61,7 +61,7 @@
-
+
GET @@ -85,7 +85,7 @@
-
+
GET diff --git a/src/style.css b/src/style.css index 6122d78..c3ce39c 100644 --- a/src/style.css +++ b/src/style.css @@ -19,6 +19,13 @@ body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif; @apply bg-white dark:bg-gray-950 text-gray-900 dark:text-gray-100; transition: background-color 0.15s ease, color 0.15s ease; + overflow-x: hidden; + max-width: 100vw; +} + +#app { + overflow-x: hidden; + max-width: 100vw; } /* Skip link */ @@ -39,7 +46,7 @@ body { .code-panel { background: var(--code-bg); border-radius: 8px; - overflow: hidden; + overflow-x: auto; } .code-panel pre { @@ -98,6 +105,12 @@ body { } } +/* Prevent grid children from overflowing viewport */ +.api-section-grid > * { + min-width: 0; + max-width: 100%; +} + /* Scrollbar styling */ ::-webkit-scrollbar { width: 6px; height: 6px; } ::-webkit-scrollbar-track { background: transparent; }