style: improve responsive manager layout

This commit is contained in:
ngfchl
2026-07-07 08:55:55 +08:00
parent 05d8f29d5f
commit e44af11c41
+54 -19
View File
@@ -8,7 +8,7 @@
<style>
* { box-sizing: border-box; }
body { margin: 0; background: #eef2f7; color: #303133; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
#app { padding: 12px 12px 72px; height: 100vh; overflow: hidden; }
#app { padding: 12px 12px 72px; height: 100vh; overflow: hidden; max-width: 1680px; margin: 0 auto; }
.topbar {
height: 54px;
@@ -40,9 +40,9 @@
.main-grid { height: calc(100vh - 54px - 10px - 54px - 10px - 212px - 84px); min-height: 360px; margin-bottom: 10px; }
.panel { height: 100%; }
.panel .el-card__body { height: 100%; padding: 12px; display: flex; flex-direction: column; }
.panel-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.panel-header h3 { margin: 0; font-size: 15px; color: #111827; }
.panel-actions { display: flex; align-items: center; gap: 8px; }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.panel-header h3 { margin: 0; font-size: 15px; color: #111827; white-space: nowrap; }
.panel-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.send-box { display: flex; gap: 8px; margin-bottom: 10px; }
.fixed-send-box {
@@ -70,11 +70,11 @@
.chat-item.spam { background: #fff1f2; border-left: 3px solid #ef4444; }
.chat-item.deleted { background: #f8fafc; border-left: 3px solid #94a3b8; opacity: .72; }
.chat-item.deleted .text { color: #94a3b8; text-decoration: line-through; }
.chat-item .meta { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.chat-item .meta-right { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.chat-item .user { font-weight: 700; color: #2563eb; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item .time { flex-shrink: 0; font-size: 11px; color: #9ca3af; }
.chat-item .text { font-size: 13px; color: #374151; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.chat-item .meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 4px; }
.chat-item .meta-right { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-shrink: 0; flex-wrap: wrap; }
.chat-item .user { font-weight: 700; color: #2563eb; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chat-item .time { flex-shrink: 0; font-size: 11px; color: #9ca3af; white-space: nowrap; }
.chat-item .text { font-size: 13px; color: #374151; line-height: 1.55; white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.log-window {
flex: 1;
@@ -114,28 +114,63 @@
.ban-list { flex: 1; overflow-y: auto; }
.ban-item { padding: 8px 10px; border-bottom: 1px solid #edf2f7; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ban-info { flex: 1; min-width: 0; }
.ban-info .user { font-weight: 700; color: #ef4444; font-size: 13px; }
.ban-info .user { font-weight: 700; color: #ef4444; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ban-info .reason { font-size: 12px; color: #6b7280; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ban-info .time { font-size: 11px; color: #9ca3af; margin-top: 2px; }
.el-card { border: none; border-radius: 12px; }
.el-button--mini, .el-button--small { border-radius: 8px; }
@media (max-width: 1200px) and (min-width: 901px) {
.main-grid { height: calc(100vh - 54px - 10px - 54px - 10px - 220px - 84px); }
.chat-item .meta { flex-direction: column; gap: 4px; }
.chat-item .meta-right { justify-content: flex-start; }
.log-line { grid-template-columns: 62px 42px minmax(0, 1fr); }
}
@media (max-width: 900px) {
#app { height: auto; min-height: 100vh; overflow: auto; padding: 8px 8px 86px; }
.topbar { height: 48px; padding: 0 12px; margin-bottom: 8px; }
.topbar h1 { font-size: 16px; }
.stats-row { margin-bottom: 8px; }
#app { height: auto; min-height: 100vh; overflow: auto; padding: 8px 8px 104px; }
.topbar { height: auto; min-height: 48px; padding: 10px 12px; margin-bottom: 8px; align-items: flex-start; gap: 8px; }
.topbar h1 { font-size: 16px; line-height: 1.25; }
.status { font-size: 12px; white-space: nowrap; margin-top: 2px; }
.stats-row { margin-bottom: 4px; }
.stats-row .el-col { margin-bottom: 8px; }
.mini-stat .el-card__body { padding: 9px 10px; }
.mini-stat .label { font-size: 11px; }
.mini-stat .num { font-size: 18px; }
.main-grid { height: auto; min-height: 0; margin-bottom: 8px; }
.main-grid > .el-col { height: auto !important; }
.panel { height: 42vh; min-height: 320px; margin-bottom: 10px; }
.log-window { min-height: 260px; font-size: 10px; }
.log-line { grid-template-columns: 56px 40px minmax(0, 1fr); gap: 4px; }
.ban-section { height: 340px; }
.fixed-send-box { bottom: 8px; width: calc(100vw - 16px); padding: 8px; }
.panel { height: auto; min-height: 0; margin-bottom: 10px; }
.panel .el-card__body { padding: 10px; }
.panel-header { align-items: flex-start; margin-bottom: 8px; }
.panel-header h3 { font-size: 14px; }
.panel-actions { gap: 6px; }
.scroll-area { height: 40vh; min-height: 280px; flex: none; }
.chat-item { padding: 8px; }
.chat-item .meta { flex-direction: column; gap: 4px; }
.chat-item .meta-right { justify-content: flex-start; width: 100%; }
.chat-item .user { max-width: 100%; white-space: normal; word-break: break-all; }
.chat-item .time { white-space: normal; }
.log-window { height: 34vh; min-height: 250px; flex: none; font-size: 10px; }
.log-line { grid-template-columns: 54px 38px minmax(0, 1fr); gap: 4px; min-height: 18px; }
.ban-section { height: 34vh; min-height: 280px; }
.ban-section .el-card__body { padding: 10px; }
.ban-item { align-items: flex-start; gap: 8px; }
.ban-info .reason { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fixed-send-box { bottom: 8px; width: calc(100vw - 16px); padding: 8px; border-radius: 12px; }
.fixed-send-box .el-button { padding-left: 12px; padding-right: 12px; }
}
@media (max-width: 420px) {
#app { padding-left: 6px; padding-right: 6px; }
.topbar { border-radius: 10px; }
.panel .el-card__body, .ban-section .el-card__body { padding: 8px; }
.scroll-area { height: 38vh; min-height: 260px; }
.log-window { height: 32vh; min-height: 240px; }
.log-msg { white-space: normal; }
.log-line { align-items: start; }
.fixed-send-box { width: calc(100vw - 12px); }
}
</style>
</head>
<body>