Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

fix(site): 彻底解决移动端导航抽屉底部挤压与页脚中英文换行错乱

tianma-if843de47ecf99
diff --git a/apps/site/src/components/footer.astro b/apps/site/src/components/footer.astro
index 15337ae1..e304f1b2 100644
--- a/apps/site/src/components/footer.astro
+++ b/apps/site/src/components/footer.astro
@@ -5,26 +5,29 @@ const locale = getSiteLocale(Astro.url.pathname);
const copy = siteCopy[locale].nav;
---
-<footer class="my-20">
- <p class="text-center text-sm text-slate-500">
- Copyright © {new Date().getFullYear()} EdgeEver. All rights reserved.
- |
- <a href={getLocalizedPath(locale, "/contact")} class="hover:underline">
- {copy.contact}
- </a>
- |
- <a href={getLocalizedPath(locale, "/privacy")} class="hover:underline">
- {copy.privacy}
- </a>
- </p>
- <p class="text-center text-xs text-slate-500 mt-1">
- Open source on <a
- href="https://github.com/tianma-if/edgeever"
- target="_blank"
- rel="noopener"
- class="hover:underline"
- >
- GitHub
- </a>
- </p>
+<footer class="my-12 sm:my-16 border-t border-slate-200/60 pt-8 pb-12 px-4">
+ <div class="max-w-5xl mx-auto flex flex-col sm:flex-row items-center justify-between gap-4 text-center sm:text-left text-xs sm:text-sm text-slate-500">
+ <p class="leading-relaxed">
+ Copyright © {new Date().getFullYear()} EdgeEver. All rights reserved.
+ </p>
+
+ <div class="flex flex-wrap items-center justify-center gap-3">
+ <a href={getLocalizedPath(locale, "/contact")} class="hover:text-emerald-700 transition-colors">
+ {copy.contact}
+ </a>
+ <span class="text-slate-300">•</span>
+ <a href={getLocalizedPath(locale, "/privacy")} class="hover:text-emerald-700 transition-colors">
+ {copy.privacy}
+ </a>
+ <span class="text-slate-300">•</span>
+ <a
+ href="https://github.com/tianma-if/edgeever"
+ target="_blank"
+ rel="noopener"
+ class="hover:text-emerald-700 transition-colors font-medium"
+ >
+ GitHub
+ </a>
+ </div>
+ </div>
</footer>
diff --git a/apps/site/src/components/navbar/navbar.astro b/apps/site/src/components/navbar/navbar.astro
index b57c658b..32594bec 100644
--- a/apps/site/src/components/navbar/navbar.astro
+++ b/apps/site/src/components/navbar/navbar.astro
@@ -159,17 +159,19 @@ const menuitems = [
}
</ul>
- <div class="pt-3 border-t border-slate-100 flex items-center justify-between">
- <LanguageSwitcher pathname={Astro.url.pathname} compact />
+ <div class="pt-3 border-t border-slate-100 flex items-center justify-between gap-3">
+ <div class="flex-1 min-w-0">
+ <LanguageSwitcher pathname={Astro.url.pathname} compact />
+ </div>
<a
href="https://github.com/tianma-if/edgeever"
target="_blank"
rel="noopener"
- class="inline-flex items-center gap-1.5 px-3.5 py-1.5 text-xs font-semibold text-slate-700 bg-slate-50 border border-slate-200 rounded-full"
+ class="inline-flex items-center gap-1.5 px-3 py-2 text-xs font-semibold text-slate-700 bg-slate-50 hover:bg-slate-100 border border-slate-200 rounded-lg shrink-0 whitespace-nowrap"
aria-label="GitHub"
>
- <Icon class="h-4 w-4 text-slate-800" name="bx:bxl-github" />
- <span>{copy.openSource}</span>
+ <Icon class="h-4 w-4 text-slate-800 shrink-0" name="bx:bxl-github" />
+ <span class="whitespace-nowrap shrink-0">{copy.openSource}</span>
</a>
</div>
</div>