Skip to content

Commit 46b3e6d

Browse files
committed
fix: 修复移动端友链挤压,补充 sm断点布局
1 parent bfe70f7 commit 46b3e6d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

app/components/Footer.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ export default function Footer() {
3737
</motion.div>
3838
</div>
3939

40-
<div className="container mx-auto grid grid-cols-1 gap-12 px-6 md:grid-cols-6">
41-
<div className="col-span-1 md:col-span-2">
40+
<div className="container mx-auto grid grid-cols-1 gap-12 px-6 sm:grid-cols-2 md:grid-cols-6">
41+
<div className="col-span-1 sm:col-span-2 md:col-span-2">
4242
<h3 className="font-heading mb-4 text-2xl text-black dark:text-white">
4343
MaaEnd
4444
</h3>
@@ -104,13 +104,13 @@ export default function Footer() {
104104
</li>
105105
</ul>
106106
</div>
107-
<div className="col-span-1 md:col-span-2">
107+
<div className="col-span-1 sm:col-span-2 md:col-span-2">
108108
<h4 className="mb-4 font-mono text-black dark:text-white">
109109
{t("footer.friendLinks")}
110110
</h4>
111-
<ul className="inline-grid grid-flow-col grid-rows-3 gap-x-2 gap-y-2 text-sm text-black/80 dark:text-white/70">
111+
<ul className="grid grid-cols-2 gap-x-2 gap-y-2 text-sm text-black/80 sm:inline-grid sm:grid-flow-col sm:grid-cols-none sm:grid-rows-3 dark:text-white/70">
112112
{FRIEND_LINKS.map((friend) => (
113-
<li key={friend.id} className="w-40">
113+
<li key={friend.id} className="min-w-0 sm:w-40">
114114
<a
115115
href={friend.href}
116116
target="_blank"

0 commit comments

Comments
 (0)