/* 「版本记录」页:只读时间线。窄屏(≤760px,与工作台既有断点一致)单列、无横向溢出。 */ .version-history { display: flex; flex-direction: column; gap: 12px; min-width: 0; } .version-history-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; } .version-history-header h2 { margin: 0 0 4px; font-size: 18px; } .version-history-header p { margin: 0; color: var(--muted, #666); font-size: 13px; } .version-history-sync-line { display: flex; align-items: center; gap: 8px; margin-top: 4px !important; } .version-history-notice { padding: 8px 10px; border-radius: 6px; background: rgba(64, 158, 255, 0.12); font-size: 13px; } .version-history-filters { display: flex; gap: 8px; flex-wrap: wrap; } .version-history-filters button.active { font-weight: 600; border-color: currentColor; } .version-history-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; } .version-history-entry { border-left: 3px solid rgba(127, 127, 127, 0.35); padding: 10px 12px; background: rgba(127, 127, 127, 0.06); border-radius: 6px; min-width: 0; } .version-history-entry.release { border-left-color: #2f9e44; } .version-history-entry.development { border-left-color: #1c7ed6; } .version-history-entry-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; } .version-history-entry-head strong { font-size: 15px; } .version-history-entry-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--muted, #666); } .version-history-badge { padding: 1px 6px; border-radius: 999px; border: 1px solid currentColor; font-size: 12px; } .version-history-badge.release { color: #2f9e44; } .version-history-badge.development { color: #1c7ed6; } .version-history-badge.historical { color: #868e96; } .version-history-badge.current { color: #e8590c; } .version-history-badge.pending { color: #1c7ed6; } .version-history-badge.warn { color: #c92a2a; } .version-history-sha { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; } .version-history-subject { margin: 6px 0 0; overflow-wrap: anywhere; } .version-history-reason { margin: 4px 0 0; font-size: 12px; color: #c92a2a; overflow-wrap: anywhere; } .version-history-toggle { margin-top: 6px; } .version-history-detail pre { margin: 6px 0 0; padding: 8px; max-height: 320px; overflow: auto; background: rgba(127, 127, 127, 0.1); border-radius: 6px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; } .version-history-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; } @media (max-width: 760px) { .version-history-header { flex-direction: column; align-items: stretch; } .version-history-entry { padding: 8px 10px; } .version-history-entry-head { flex-direction: column; gap: 2px; } /* 窄屏单列:正文/标题/hash 一律换行,不出现横向滚动 */ .version-history, .version-history-timeline, .version-history-entry, .version-history-subject, .version-history-sha, .version-history-reason { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; } .version-history-detail pre { max-height: none; } }