Skip to content

Commit fc3c7dd

Browse files
Merge pull request #17 from fastapi-startkit/mobile-fixes
feat: fix for the mobile
2 parents eb3a38e + d583c2a commit fc3c7dd

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

.vitepress/theme/components/HeroSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
const tabData = {
4141
Application: { files: ["application.py", "artisan"], raw: [applicationRaw, artisanRaw] },
4242
FastAPI: { files: ["fastapi.py", "users_controllers.py", "api.py"], raw: [fastapiRaw, fastapiControllerRaw, fastapiRoutesRaw] },
43-
Database: { files: ["models.py", "migrations.py"], raw: [dbModelsRaw] },
43+
Database: { files: ["models.py"], raw: [dbModelsRaw] },
4444
Migrations: { files: ["2026_04_26_110113_create_users.py"], raw: [dbMigrationsRaw] },
4545
Logging: { files: ["logging.py", "config.py"], raw: [logLoggerRaw] },
4646
}

.vitepress/theme/custom.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@
132132
top: var(--vp-nav-height) !important;
133133
}
134134

135+
/* On mobile, the VPLocalNav bar sits below the SiteHeader and covers the doc content.
136+
Add extra top padding so the page title isn't hidden behind it. */
137+
@media (max-width: 959px) {
138+
.VPDoc {
139+
padding-top: calc(var(--vp-local-nav-height, 48px) + 3rem) !important;
140+
}
141+
}
142+
135143

136144
.dark {
137145
--vp-c-brand-1: #66d9c9;

0 commit comments

Comments
 (0)