Restore original Agent card dimensions

This commit is contained in:
鲨鱼辣椒 committed 2026-10-12 22:10:35 +08:00
1 parent 794e717575
commit 1afdb59b97
3 files changed
+85 -15

No files matched your search

+12 -14
View File
@@ -26,29 +26,29 @@
.agent-home-create svg { width: 19px; height: 19px; }
.agent-home-back { gap: 6px; margin: -12px 0 16px -12px; color: #606c7e; }
.agent-home-back svg { width: 17px; height: 17px; }
.agent-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 256px), 256px)); gap: 14px; }
.agent-home-card { display: flex; min-width: 0; flex-direction: column; padding: 16px; border: 1px solid #dce5f3; border-radius: 18px; background: #f1f6ff; transition: border-color 160ms ease, box-shadow 160ms ease; }
.agent-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 292px), 1fr)); gap: 20px; }
.agent-home-card { display: flex; min-width: 0; flex-direction: column; padding: 24px; border: 1px solid #dce5f3; border-radius: 24px; background: #f1f6ff; transition: border-color 160ms ease, box-shadow 160ms ease; }
.agent-home-card[data-tone="1"] { background: #f6f2ff; border-color: #e5dcf5; }
.agent-home-card[data-tone="2"] { background: #fff5e9; border-color: #f0e2ce; }
.agent-home-card:hover, .agent-home-card:focus-within { border-color: #bcc9df; box-shadow: 0 4px 16px #2732460a; }
.agent-home-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.agent-home-avatar { width: 48px; height: 48px; flex-shrink: 0; overflow: hidden; border: 2px solid #fff; border-radius: 16px; background: #fff6de; box-shadow: 0 2px 5px #27324608; }
.agent-home-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.agent-home-avatar { width: 72px; height: 72px; flex-shrink: 0; overflow: hidden; border: 3px solid #fff; border-radius: 22px; background: #fff6de; box-shadow: 0 2px 5px #27324608; }
.agent-home-avatar img { width: 100%; height: 100%; object-fit: cover; }
.agent-home-avatar .agent-home-builtin-avatar { image-rendering: pixelated; }
.agent-home-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 8px; border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 1.5; color: #765229; background: #fff9eb; white-space: nowrap; }
.agent-home-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 5px 10px; border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 1.5; color: #765229; background: #fff9eb; white-space: nowrap; }
.agent-home-status::before { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: #af7c36; content: ''; }
.agent-home-card[data-state="ready"] .agent-home-status { color: #38684d; background: #e3f4e9; }
.agent-home-card[data-state="ready"] .agent-home-status::before { background: #498264; }
.agent-home-card[data-state="inactive"] .agent-home-status { color: #606c7e; background: #e9edf2; }
.agent-home-card[data-state="inactive"] .agent-home-status::before { background: #778294; }
.agent-home-card h2 { overflow: hidden; font-size: 18px; font-weight: 650; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.agent-home-purpose { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 42px; overflow: hidden; margin-top: 6px; font-size: 14px; line-height: 21px; color: #606c7e; white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-home-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: auto; padding-top: 10px; }
.agent-home-card .agent-home-card-primary { gap: 6px; padding-inline: 10px; border-radius: 12px; font-size: 14px; }
.agent-home-card h2 { overflow: hidden; font-size: 21px; font-weight: 650; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.agent-home-purpose { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 78px; overflow: hidden; margin-top: 8px; font-size: 15px; line-height: 26px; color: #606c7e; white-space: pre-wrap; overflow-wrap: anywhere; }
.agent-home-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 20px; }
.agent-home-card-primary { gap: 7px; border-radius: 12px; font-size: 14px; }
.agent-home-card-primary svg { width: 17px; height: 17px; }
.agent-home-card-primary.border { border-color: #c6ccda; background: #ffffffb3; color: #35435b; }
.agent-home-card .agent-home-adjust { padding-inline: 8px; border-radius: 12px; color: #546176; }
.agent-home-card .agent-home-delete { gap: 5px; margin-left: auto; padding-inline: 6px; border-radius: 12px; color: #836b73; }
.agent-home-adjust { padding-inline: 9px; border-radius: 12px; color: #546176; }
.agent-home-delete { gap: 5px; margin-left: auto; padding-inline: 8px; border-radius: 12px; color: #836b73; }
.agent-home-delete svg { width: 16px; height: 16px; }
.agent-home-delete:hover { color: #ac3d49; background: #fce9e9; }
.agent-home-delete-dialog { border-radius: 24px; }
@@ -72,13 +72,11 @@
.agent-home-greeting h1 { font-size: 26px; }
.agent-home-greeting-doodle { display: none; }
.agent-home-header-actions { flex-wrap: wrap; }
.agent-home-card { padding: 22px; }
.agent-home-empty { min-height: 360px; padding-inline: 20px; }
.agent-home-empty h2 { font-size: 22px; }
.agent-home-error { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 560px) {
.agent-home-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
.agent-home-card { transition: none; }
.agent-home-greeting-doodle { animation: none; }