feat(xinhan): refine responsive layout for mobile; adjust search terms to include recipient
This commit is contained in:
+18
-5
@@ -6,17 +6,30 @@
|
||||
<title>Xinhan 查询</title>
|
||||
<script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script>
|
||||
<style>
|
||||
body { font-family: Arial, Helvetica, sans-serif; background: #f7f7f7; margin: 0; }
|
||||
.container { max-width: 1000px; margin: 20px auto; padding: 16px; }
|
||||
.card { background: #fff; border-radius: 8px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
|
||||
:root { --bg: #f7f7f7; --card: #fff; --primary: #1a73e8; --text: #222; font-size: 14px; }
|
||||
html, body { margin: 0; padding: 0; height: 100%; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
|
||||
.container { max-width: 1000px; margin: 20px auto; padding: 0 12px; }
|
||||
.card { background: var(--card); border-radius: 8px; padding: 16px; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
|
||||
h1 { font-size: 20px; margin: 0 0 12px; }
|
||||
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
|
||||
.form-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 12px; }
|
||||
.form-control { width: 100%; padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
|
||||
.btn { padding: 8px 14px; background: #1a73e8; color: white; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }
|
||||
.btn { padding: 8px 14px; background: var(--primary); color: white; border-radius: 6px; border: none; font-weight: 600; cursor: pointer; }
|
||||
.table-wrapper { margin-top: 12px; overflow-x: auto; }
|
||||
table { width: 100%; border-collapse: collapse; font-size: 14px; }
|
||||
th, td { padding: 10px 12px; border-bottom: 1px solid #eee; text-align: left; }
|
||||
th { background: #f6f7f9; }
|
||||
.loading { text-align: center; color: #666; padding: 20px; }
|
||||
@media (max-width: 900px) {
|
||||
.form-row { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
|
||||
}
|
||||
@media (max-width: 700px) {
|
||||
.form-row { grid-template-columns: 1fr; }
|
||||
}
|
||||
/* 更紧凑的表格在小屏上隐藏部分列,保持可读性,同时允许横向滚动查看完整信息 */
|
||||
@media (max-width: 600px) {
|
||||
table thead th:nth-child(4), table tbody td:nth-child(4),
|
||||
table thead th:nth-child(5), table tbody td:nth-child(5) { display: none; }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
Reference in New Issue
Block a user