File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ export default function Page() {
4848 const formatDateTime = ( iso ?: string ) =>
4949 iso
5050 ? new Date ( iso ) . toLocaleDateString ( "zh-TW" , {
51- year : "numeric" ,
52- month : "2-digit" ,
53- day : "2-digit" ,
54- } )
51+ year : "numeric" ,
52+ month : "2-digit" ,
53+ day : "2-digit" ,
54+ } )
5555 : "" ;
5656
5757 const fetchPosts = async ( ) => {
@@ -187,7 +187,7 @@ export default function Page() {
187187 ) }
188188 </ div >
189189
190- < div className = "rounded-lg h-full overflow-hidden mt-4" >
190+ < div className = "rounded-lg overflow-hidden mt-4 h-[45dvh] " >
191191 < table className = "min-w-full bg-white rounded-lg" >
192192 < thead className = "bg-gradient-to-r from-blue-500 to-blue-600 text-white sticky top-0 z-10" >
193193 < tr className = "text-center flex" >
@@ -229,17 +229,17 @@ export default function Page() {
229229 >
230230 < td className = "py-4 text-sm font-medium text-gray-900 text-center w-3/12" >
231231 < span className = "inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-blue-100 text-blue-800" >
232- { r . _id }
232+ { r . _id } { " " }
233233 </ span >
234234 </ td >
235235 < td className = "py-4 text-sm text-gray-900 text-center w-6/12 truncate" >
236- { r . title }
236+ { r . title } { " " }
237237 </ td >
238238 < td className = "py-4 text-sm text-gray-900 text-center w-1/12" >
239- { r . userName }
239+ { r . userName } { " " }
240240 </ td >
241241 < td className = "py-4 text-sm text-gray-500 text-center w-2/12" >
242- { formatDateTime ( r . createdAt ) }
242+ { formatDateTime ( r . createdAt ) } { " " }
243243 </ td >
244244 </ tr >
245245 ) ;
You can’t perform that action at this time.
0 commit comments