@@ -170,7 +170,7 @@ export default function Admin() {
170170
171171 { /* Admin Analytics */ }
172172 { adminStats && (
173- < div className = "grid grid-cols-2 md :grid-cols-4 gap-4 mb-8" >
173+ < div className = "grid grid-cols-2 sm :grid-cols-4 gap-4 mb-8" >
174174 < div className = "card p-5 flex items-center gap-4" >
175175 < div className = "p-3 bg-indigo-600/20 rounded-lg" >
176176 < Users size = { 24 } className = "text-indigo-400" />
@@ -254,14 +254,14 @@ export default function Admin() {
254254 < p className = "text-gray-400" > 暂无题目,点击上方按钮创建</ p >
255255 </ div >
256256 ) : (
257- < div className = "card overflow-hidden " >
257+ < div className = "card overflow-x-auto " >
258258 < table className = "w-full text-sm" >
259259 < thead >
260260 < tr className = "border-b border-dark-700" >
261- < th className = "text-left py-3 px-4 text-gray-400" > ID</ th >
261+ < th className = "text-left py-3 px-4 text-gray-400 hidden md:table-cell " > ID</ th >
262262 < th className = "text-left py-3 px-4 text-gray-400" > 标题</ th >
263263 < th className = "text-left py-3 px-4 text-gray-400" > 类型</ th >
264- < th className = "text-left py-3 px-4 text-gray-400" > 难度</ th >
264+ < th className = "text-left py-3 px-4 text-gray-400 hidden md:table-cell " > 难度</ th >
265265 < th className = "text-right py-3 px-4 text-gray-400" > 操作</ th >
266266 </ tr >
267267 </ thead >
@@ -271,7 +271,7 @@ export default function Admin() {
271271 key = { problem . id }
272272 className = "border-b border-dark-800 hover:bg-dark-800/50 transition-colors"
273273 >
274- < td className = "py-3 px-4 text-gray-400" > { problem . id } </ td >
274+ < td className = "py-3 px-4 text-gray-400 hidden md:table-cell " > { problem . id } </ td >
275275 < td className = "py-3 px-4 text-white font-medium" >
276276 { problem . title }
277277 </ td >
@@ -280,7 +280,7 @@ export default function Admin() {
280280 { TYPE_LABELS [ problem . type ] || problem . type }
281281 </ span >
282282 </ td >
283- < td className = "py-3 px-4" >
283+ < td className = "py-3 px-4 hidden md:table-cell " >
284284 < span
285285 className = { `px-2 py-0.5 text-xs rounded text-white ${
286286 DIFFICULTY_COLORS [ problem . difficulty ] || 'bg-gray-600'
@@ -291,7 +291,7 @@ export default function Admin() {
291291 </ span >
292292 </ td >
293293 < td className = "py-3 px-4 text-right" >
294- < div className = "flex items-center justify-end gap-1" >
294+ < div className = "flex flex-col md:flex-row items-end md: items-center justify-end gap-1" >
295295 < button
296296 onClick = { ( ) =>
297297 navigate ( `/admin/problems/${ problem . id } /edit` )
0 commit comments