File tree Expand file tree Collapse file tree 5 files changed +22
-14
lines changed Expand file tree Collapse file tree 5 files changed +22
-14
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ export default async function Page() {
1010 const initialPage = await getFeedPage ( { limit : INITIAL_FEED_LIMIT } ) ;
1111
1212 return (
13- < div className = "flex flex-1 flex-col gap-8 px-6 pt-8 pb-12" >
13+ < div className = "flex flex-1 flex-col gap-8 px-4 pt-8 pb-12 sm:px-6 " >
1414 < div className = "flex flex-col gap-2" >
1515 < div className = "flex flex-wrap items-end justify-between gap-4" >
1616 < div >
1717 < h1 className = "text-3xl font-semibold tracking-tight" > 社区精选</ h1 >
1818 < p className = "mt-1 text-sm text-muted-foreground" >
19- 实时汇总讨论区文章 、帖子、云剪贴与社区裁决 。
19+ 实时汇总高热度的文章 、帖子、云剪贴板与陶片 。
2020 </ p >
2121 </ div >
2222 </ div >
Original file line number Diff line number Diff line change @@ -751,7 +751,7 @@ export function CommentBoard(props: CommentBoardProps) {
751751 type = "button"
752752 variant = "ghost"
753753 size = "sm"
754- className = "gap-1.5 rounded-xl"
754+ className = "hidden gap-1.5 rounded-xl"
755755 onClick = { searchAction . onClick }
756756 >
757757 < Search className = "size-4" aria-hidden = "true" />
Original file line number Diff line number Diff line change @@ -79,12 +79,6 @@ export default function FeedCardTemplate({
7979 >
8080 { TYPE_META [ kind ] . label }
8181 </ span >
82- < time
83- className = "text-xs text-muted-foreground"
84- dateTime = { time . toISOString ( ) }
85- >
86- { formatRelativeTime ( time ) }
87- </ time >
8882 </ header >
8983 < div className = "mt-4 space-y-3" >
9084 { metaTags ?. length || metaText ? (
@@ -130,7 +124,7 @@ export default function FeedCardTemplate({
130124 </ div >
131125 ) : null }
132126 { metrics ?. length ? (
133- < div className = "flex flex-wrap items-center gap-2.5" >
127+ < div className = "flex flex-wrap items-center gap-x- 2.5 gap-y-2 " >
134128 { metrics . map ( ( metric , index ) => (
135129 < MetaItem key = { index } compact { ...metric } />
136130 ) ) }
@@ -143,6 +137,12 @@ export default function FeedCardTemplate({
143137 ) : (
144138 < span className = "text-foreground" > 匿名用户</ span >
145139 ) }
140+ < time
141+ className = "text-xs text-muted-foreground"
142+ dateTime = { time . toISOString ( ) }
143+ >
144+ { formatRelativeTime ( time ) }
145+ </ time >
146146 </ footer >
147147 </ div >
148148 </ div >
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export function FeedCard({ item }: { item: FeedEntry }) {
3232 { icon : MessageCircle , children : `${ item . replyCount } \u2009评论` } ,
3333 {
3434 icon : CalendarClock ,
35- children : `近期 \u2009${ item . recentReplyCount } \u2009评论` ,
35+ children : `最近 \u2009${ item . recentReplyCount } \u2009评论` ,
3636 } ,
3737 { icon : Star , children : `${ item . favorCount } \u2009收藏` } ,
3838 { icon : ThumbsUp , children : `${ item . upvote } \u2009赞同` } ,
@@ -55,7 +55,7 @@ export function FeedCard({ item }: { item: FeedEntry }) {
5555 { icon : MessageSquare , children : `${ item . replyCount } \u2009回复` } ,
5656 {
5757 icon : CalendarClock ,
58- children : `近期 \u2009${ item . recentReplyCount } \u2009回复` ,
58+ children : `最近 \u2009${ item . recentReplyCount } \u2009回复` ,
5959 } ,
6060 ] }
6161 user = { item . author }
Original file line number Diff line number Diff line change @@ -25,7 +25,12 @@ import {
2525 BreadcrumbSeparator ,
2626} from "@/components/ui/breadcrumb" ;
2727import { Button } from "@/components/ui/button" ;
28- import { Sheet , SheetContent } from "@/components/ui/sheet" ;
28+ import {
29+ Sheet ,
30+ SheetContent ,
31+ SheetHeader ,
32+ SheetTitle ,
33+ } from "@/components/ui/sheet" ;
2934import {
3035 BreadcrumbProvider ,
3136 useBreadcrumbContext ,
@@ -173,6 +178,9 @@ function MobileSidebar({
173178 return (
174179 < Sheet open = { open } onOpenChange = { onOpenChange } >
175180 < SheetContent side = "left" className = "w-72 border-r p-0" >
181+ < SheetHeader className = "sr-only" >
182+ < SheetTitle > 导航菜单</ SheetTitle >
183+ </ SheetHeader >
176184 < div className = "flex h-full flex-col overflow-y-auto px-4 py-6" >
177185 < SidebarBrand variant = "mobile" />
178186 < nav className = "mt-6 space-y-1.5" >
@@ -256,7 +264,7 @@ function TopBar({
256264
257265 return (
258266 < header className = "sticky top-0 z-30 border-b bg-background/80 backdrop-blur" >
259- < div className = "flex h-16 items-center gap-3 px-4" >
267+ < div className = "flex h-16 items-center gap-3 px-4 sm:px-6 " >
260268 { isMobile && (
261269 < Button
262270 variant = "ghost"
You can’t perform that action at this time.
0 commit comments