From f9f4fe3eb9db9a70b53e7dfbdc12d79fa1c07c9f Mon Sep 17 00:00:00 2001 From: Fajrian Aidil Pratama Date: Thu, 11 Sep 2025 09:40:38 +0700 Subject: [PATCH 1/3] fix: improve mobile responsiveness for Samsung A33 and small screens - Hero section: reduce font sizes, improve spacing, fix code terminal layout - Documentation: optimize sidebar width, reduce padding for mobile - Overview section: responsive typography, better code block handling - Reproduction Rate: mobile-friendly math formulas with overflow handling - Add responsive breakpoints for xs/sm screens (360px+) - Improve touch targets and content readability on mobile devices --- .htaccess | 17 ++- .../documentation/GlossarySection.vue | 110 +++++++++--------- .../documentation/OverviewSection.vue | 50 ++++---- src/views/Documentation.vue | 12 +- src/views/Home.vue | 66 +++++------ 5 files changed, 135 insertions(+), 120 deletions(-) diff --git a/.htaccess b/.htaccess index 965b5e0..c6fd7eb 100644 --- a/.htaccess +++ b/.htaccess @@ -16,14 +16,23 @@ RewriteRule ^api/v1/(.*)$ http://localhost:8080/api/v1/$1 [P,L] # Handle root API endpoint RewriteRule ^api/v1/?$ http://localhost:8080/api/v1/ [P,L] -# Serve Swagger UI static files (no proxy needed) -# Static files will be served directly by web server +# ============================================================================= +# SWAGGER UI STATIC FILES CONFIGURATION +# ============================================================================= + + # Serve Swagger UI + RewriteRule ^swagger/?$ /dist/index.html [L] + RewriteRule ^swagger/(.*)$ /dist/$1 [L] + + # Serve docs directory (swagger.json, swagger.yaml, swagger.html) + RewriteRule ^docs/(.*)$ /docs/$1 [L] + # Handle docs route for Vue documentation site RewriteRule ^docs/?$ /index.html [L] -# Optional: API documentation redirect -RewriteRule ^api/?$ /api/v1/health [R=302,L] +# Redirect /api/ to Swagger UI documentation +RewriteRule ^api/?$ /swagger/ [R=302,L] # ============================================================================= # CORS HEADERS CONFIGURATION diff --git a/src/components/documentation/GlossarySection.vue b/src/components/documentation/GlossarySection.vue index 9262fb1..fd32423 100644 --- a/src/components/documentation/GlossarySection.vue +++ b/src/components/documentation/GlossarySection.vue @@ -1,41 +1,41 @@