feat(hub): redesign archive as inner-light-mind journal
Rename archive to 内照明心 with daily trade records by default, review quotes sidebar, on-demand chart, sick-row highlighting, and new daily-trades/quotes APIs.
This commit is contained in:
@@ -5396,11 +5396,19 @@ body.funds-fullscreen-open {
|
||||
}
|
||||
}
|
||||
|
||||
/* —— 币种档案 —— */
|
||||
/* —— 内照明心 —— */
|
||||
.archive-toolbar {
|
||||
flex-wrap: wrap;
|
||||
gap: 10px 14px;
|
||||
margin-bottom: 12px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.archive-search-field input {
|
||||
min-width: 160px;
|
||||
}
|
||||
#archive-btn-chart-toggle.is-active {
|
||||
color: var(--accent);
|
||||
border-color: var(--accent);
|
||||
background: var(--accent-dim);
|
||||
}
|
||||
.archive-field {
|
||||
display: inline-flex;
|
||||
@@ -5421,79 +5429,166 @@ body.funds-fullscreen-open {
|
||||
}
|
||||
.archive-layout {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
|
||||
grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
|
||||
gap: 14px;
|
||||
min-height: 520px;
|
||||
align-items: start;
|
||||
}
|
||||
.archive-list-panel {
|
||||
.archive-quotes-panel,
|
||||
.archive-main-panel {
|
||||
background: var(--panel);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--radius);
|
||||
overflow: auto;
|
||||
max-height: calc(100vh - 200px);
|
||||
min-width: 0;
|
||||
}
|
||||
.archive-list {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.archive-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr auto;
|
||||
grid-template-rows: auto auto;
|
||||
gap: 2px 8px;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
padding: 10px 12px;
|
||||
border: none;
|
||||
border-bottom: 1px solid var(--border-soft);
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
cursor: pointer;
|
||||
font-family: var(--font);
|
||||
}
|
||||
.archive-row:hover,
|
||||
.archive-row.is-active {
|
||||
background: var(--inset-surface);
|
||||
}
|
||||
.archive-row-sym {
|
||||
font-weight: 600;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.archive-row-ex {
|
||||
font-size: 0.75rem;
|
||||
color: var(--muted);
|
||||
text-transform: uppercase;
|
||||
}
|
||||
.archive-row-stat {
|
||||
grid-column: 1 / -1;
|
||||
font-size: 0.8rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
.archive-row-meta {
|
||||
font-size: 0.72rem;
|
||||
color: var(--accent);
|
||||
align-self: start;
|
||||
}
|
||||
.archive-detail-panel {
|
||||
.archive-quotes-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
min-width: 0;
|
||||
padding: 12px;
|
||||
max-height: calc(100vh - 180px);
|
||||
overflow: hidden;
|
||||
}
|
||||
.archive-detail-head {
|
||||
.archive-panel-head {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
gap: 8px 16px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 8px;
|
||||
}
|
||||
.archive-detail-head h2 {
|
||||
.archive-panel-head h2 {
|
||||
margin: 0;
|
||||
font-size: 1.1rem;
|
||||
font-size: 0.95rem;
|
||||
}
|
||||
.archive-detail-stats {
|
||||
font-size: 0.82rem;
|
||||
.archive-panel-meta {
|
||||
font-size: 0.72rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
.archive-quote-form {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.archive-quote-form input[type="date"],
|
||||
.archive-quote-form textarea {
|
||||
width: 100%;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-soft);
|
||||
background: var(--inset-surface);
|
||||
color: var(--text);
|
||||
font-family: var(--font);
|
||||
font-size: 0.82rem;
|
||||
resize: vertical;
|
||||
}
|
||||
.archive-quotes-list {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow: auto;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.archive-quote-card {
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: 8px;
|
||||
background: var(--inset-surface);
|
||||
overflow: hidden;
|
||||
}
|
||||
.archive-quote-summary {
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
gap: 8px;
|
||||
align-items: center;
|
||||
padding: 8px 10px;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
}
|
||||
.archive-quote-summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
.archive-quote-date {
|
||||
font-weight: 600;
|
||||
font-size: 0.78rem;
|
||||
color: var(--accent);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.archive-quote-preview {
|
||||
font-size: 0.74rem;
|
||||
color: var(--muted);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.archive-quote-body {
|
||||
padding: 0 10px 10px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.archive-quote-edit {
|
||||
width: 100%;
|
||||
min-height: 72px;
|
||||
padding: 8px 10px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-soft);
|
||||
background: var(--panel);
|
||||
color: var(--text);
|
||||
font-family: var(--font);
|
||||
font-size: 0.8rem;
|
||||
resize: vertical;
|
||||
}
|
||||
.archive-quote-actions {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
.archive-main-panel {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
min-height: 520px;
|
||||
}
|
||||
.archive-stats-bar {
|
||||
padding: 10px 12px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-soft);
|
||||
background: var(--inset-surface);
|
||||
font-size: 0.82rem;
|
||||
color: var(--text);
|
||||
line-height: 1.45;
|
||||
}
|
||||
.archive-acc-section {
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--radius);
|
||||
background: var(--inset-surface);
|
||||
overflow: hidden;
|
||||
}
|
||||
.archive-acc-summary {
|
||||
padding: 10px 12px;
|
||||
font-weight: 600;
|
||||
font-size: 0.86rem;
|
||||
cursor: pointer;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.archive-acc-summary::-webkit-details-marker {
|
||||
display: none;
|
||||
}
|
||||
.archive-acc-sub {
|
||||
font-weight: 400;
|
||||
font-size: 0.76rem;
|
||||
color: var(--muted);
|
||||
}
|
||||
.archive-chart-section > :not(summary) {
|
||||
padding: 0 10px 10px;
|
||||
}
|
||||
.archive-trades-section > .archive-trades {
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
max-height: min(56vh, 560px);
|
||||
}
|
||||
.archive-chart-toolbar {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
@@ -5553,7 +5648,7 @@ body.funds-fullscreen-open {
|
||||
}
|
||||
.archive-trades {
|
||||
overflow: auto;
|
||||
max-height: 280px;
|
||||
max-height: min(56vh, 560px);
|
||||
border: 1px solid var(--border-soft);
|
||||
border-radius: var(--radius);
|
||||
background: var(--panel);
|
||||
@@ -5601,6 +5696,27 @@ body.funds-fullscreen-open {
|
||||
.archive-trade-row.is-active {
|
||||
background: var(--inset-surface);
|
||||
}
|
||||
.archive-trade-row.archive-trade-sick {
|
||||
background: rgba(239, 68, 68, 0.12);
|
||||
}
|
||||
.archive-trade-row.archive-trade-sick.is-active {
|
||||
background: rgba(239, 68, 68, 0.18);
|
||||
}
|
||||
.archive-trade-row.archive-trade-sick td {
|
||||
border-bottom-color: rgba(239, 68, 68, 0.22);
|
||||
}
|
||||
.archive-actions-cell {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.archive-actions-cell .archive-chart-btn,
|
||||
.archive-actions-cell .archive-del-btn {
|
||||
margin-right: 6px;
|
||||
}
|
||||
.archive-chart-btn {
|
||||
padding: 3px 8px;
|
||||
font-size: 0.72rem;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.archive-trades-table td.pos {
|
||||
color: #22c55e;
|
||||
}
|
||||
@@ -5639,8 +5755,8 @@ body.funds-fullscreen-open {
|
||||
.archive-layout {
|
||||
grid-template-columns: 1fr;
|
||||
}
|
||||
.archive-list-panel {
|
||||
max-height: 240px;
|
||||
.archive-quotes-panel {
|
||||
max-height: 280px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user