diff --git a/lib/common/static/instance_theme.css b/lib/common/static/instance_theme.css index f8cf0e3..abe727b 100644 --- a/lib/common/static/instance_theme.css +++ b/lib/common/static/instance_theme.css @@ -3305,16 +3305,25 @@ html[data-theme="light"] .options-estimate-row { align-items: center; gap: 6px; min-width: 0; - flex: 1 1 auto; - flex-wrap: nowrap; + flex: 0 1 auto; + overflow: hidden; +} +.opt-pos-bar-id-group { + display: inline-flex; + align-items: center; + gap: 6px; + min-width: 0; + max-width: 100%; overflow: hidden; } .opt-pos-bar .pos-side-badge { + display: inline-flex; + align-items: center; white-space: nowrap; flex-shrink: 0; padding: 2px 6px; font-size: 0.62rem; - line-height: 1.15; + line-height: 1; } .opt-pos-cards--accordion .opt-pos-bar-meta { display: none; @@ -3325,9 +3334,9 @@ html[data-theme="light"] .options-estimate-row { align-items: flex-end; justify-content: center; gap: 1px; - flex-shrink: 0; + flex: 0 0 auto; + margin-left: auto; font-variant-numeric: tabular-nums; - min-width: 3.6rem; } .opt-pos-bar-title { font-size: 0.68rem; @@ -3336,8 +3345,8 @@ html[data-theme="light"] .options-estimate-row { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; - flex: 1 1 auto; - min-width: 5.5rem; + flex: 0 1 auto; + min-width: 0; } .opt-pos-bar-meta { font-size: 0.66rem; @@ -3392,8 +3401,74 @@ html[data-theme="light"] .options-estimate-row { .options-history-table-wrap { flex: 1; overflow-y: auto; + overflow-x: auto; min-height: 120px; } +.opt-history-table { + table-layout: fixed; + width: 100%; +} +.opt-history-table .opt-hist-inst code { + display: block; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} +.opt-history-table th:nth-child(1), +.opt-history-table td:nth-child(1) { + width: 34%; +} +.opt-history-table th:nth-child(2), +.opt-history-table td:nth-child(2) { + width: 7%; +} +.opt-history-table th:nth-child(3), +.opt-history-table td:nth-child(3) { + width: 11%; +} +.opt-history-table th:nth-child(4), +.opt-history-table td:nth-child(4) { + width: 9%; +} +.opt-history-table th:nth-child(5), +.opt-history-table td:nth-child(5) { + width: 11%; +} +.opt-history-table th:nth-child(6), +.opt-history-table td:nth-child(6) { + width: 20%; +} +.opt-history-table th:nth-child(7), +.opt-history-table td:nth-child(7) { + width: 8%; + text-align: center; +} +.opt-hist-time { + font-size: 0.64rem; + white-space: nowrap; +} +.opt-hist-status { + display: inline-flex; + align-items: center; + padding: 1px 6px; + border-radius: 4px; + font-size: 0.62rem; + font-weight: 600; + line-height: 1.3; + white-space: nowrap; +} +.opt-hist-status--closed { + background: rgba(74, 124, 255, 0.2); + color: #9ec0ff; +} +.opt-hist-status--expired { + background: rgba(255, 179, 71, 0.15); + color: #ffb347; +} +.opt-hist-status--open { + background: rgba(94, 232, 154, 0.12); + color: #5ee89a; +} @media (max-width: 1100px) { .options-dual-grid { grid-template-columns: 1fr; diff --git a/lib/common/static/options_panel.js b/lib/common/static/options_panel.js index 830c56f..f3b5822 100644 --- a/lib/common/static/options_panel.js +++ b/lib/common/static/options_panel.js @@ -482,10 +482,10 @@ ''; tbody.appendChild(tr); }); diff --git a/lib/options/templates/options_panel.html b/lib/options/templates/options_panel.html index f0bb0c3..2d116e6 100644 --- a/lib/options/templates/options_panel.html +++ b/lib/options/templates/options_panel.html @@ -114,7 +114,7 @@

期权历史

- +
@@ -137,4 +137,4 @@ - +
合约