Add hub order popup modal with compact instance trade embed (plan A).

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-06-25 23:12:08 +08:00
parent ee011800e1
commit 1767566951
9 changed files with 334 additions and 12 deletions
+63
View File
@@ -2526,6 +2526,69 @@ button.btn-sm {
gap: 8px;
}
.order-popup-modal .order-popup-card {
width: min(920px, calc(100vw - 24px));
max-height: calc(100vh - 32px);
display: flex;
flex-direction: column;
padding: 0;
overflow: hidden;
}
.order-popup-head {
padding: 12px 14px;
border-bottom: 1px solid var(--border-soft);
flex-shrink: 0;
}
.order-popup-head-actions {
display: flex;
align-items: center;
gap: 6px;
}
.order-popup-frame-wrap {
position: relative;
flex: 1;
min-height: 420px;
max-height: calc(100vh - 120px);
background: #0b0d14;
}
.order-popup-frame {
width: 100%;
height: 100%;
min-height: 420px;
border: 0;
display: block;
background: #0b0d14;
}
.order-popup-loading {
position: absolute;
inset: 0;
display: none;
align-items: center;
justify-content: center;
gap: 10px;
color: var(--muted);
font-size: 13px;
background: rgba(8, 10, 18, 0.82);
z-index: 2;
}
.order-popup-modal.is-loading .order-popup-loading {
display: flex;
}
.order-popup-modal.is-loading .order-popup-frame {
opacity: 0.35;
}
body.hub-order-popup-open {
overflow: hidden;
}
.table-scroll {
overflow-x: auto;
-webkit-overflow-scrolling: touch;