feat: 统一研究模块表格布局与详情交互

This commit is contained in:
yuxuanhui
2026-09-09 09:29:30 +08:00
parent f6c2dcead8
commit 20645d6d17
19 changed files with 1693 additions and 1243 deletions
+92 -84
View File
@@ -1,73 +1,25 @@
.research-workspace {
height: 100%;
overflow: auto;
padding: 24px 28px;
color: var(--semi-color-text-0);
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
min-width: 0;
overflow: hidden;
color: var(--semi-color-text-0);
}
.research-page-heading,
.research-section-heading {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
}
.research-page-heading {
margin-bottom: 24px;
}
.research-page-heading h2 {
font-size: 22px;
margin: 0 0 8px;
}
.research-workspace p,
.research-detail-content p,
.research-hint {
font-size: 13px;
color: var(--semi-color-text-2);
line-height: 1.6;
}
.research-layout {
display: grid;
grid-template-columns: 220px minmax(0, 1fr);
gap: 24px;
align-items: start;
}
.research-library {
position: sticky;
top: 0;
max-height: calc(100vh - 180px);
overflow: auto;
padding-right: 12px;
}
.research-library h3,
.research-card h3 {
font-size: 16px;
margin: 0 0 12px;
}
.research-library > h3 {
margin-top: 28px;
}
.research-library-item {
display: flex;
flex-direction: column;
gap: 6px;
background: transparent;
border: 0;
border-radius: 6px;
padding: 12px;
text-align: left;
width: 100%;
color: inherit;
cursor: pointer;
margin: 4px 0;
}
.research-library-item.selected,
.research-library-item:hover {
background: var(--semi-color-fill-0);
}
.research-library-item span {
font-size: 12px;
color: var(--semi-color-text-2);
}
.research-main {
min-width: 0;
display: grid;
@@ -80,6 +32,10 @@
background: var(--semi-color-bg-1);
min-width: 0;
}
.research-card h3 {
font-size: 16px;
margin: 0 0 12px;
}
.research-card label,
.research-editor label {
display: flex;
@@ -127,13 +83,15 @@
justify-self: start;
}
.research-code-editor textarea,
.research-workspace code {
.research-workspace code,
.research-detail-content code {
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 12px;
white-space: pre-wrap;
overflow-wrap: anywhere;
}
.research-workspace pre {
.research-workspace pre,
.research-detail-content pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
font-size: 12px;
@@ -170,19 +128,16 @@
.research-table details {
margin-top: 8px;
}
.research-workspace summary {
.research-workspace summary,
.research-detail-content summary {
cursor: pointer;
font-size: 13px;
}
.research-comparison-grid,
.research-operator-layout {
.research-comparison-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}
.research-operator-layout {
grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
}
.research-comparison-grid article {
padding-top: 12px;
}
@@ -192,31 +147,10 @@
padding: 18px 12px 8px;
}
@media (max-width: 1100px) {
.research-layout {
grid-template-columns: 170px minmax(0, 1fr);
gap: 16px;
}
.research-workspace {
padding: 20px;
}
.research-operator-layout,
.research-comparison-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 760px) {
.research-layout {
display: block;
}
.research-library {
position: static;
max-height: 200px;
margin-bottom: 16px;
}
.research-page-heading {
align-items: start;
}
}
.research-sr-only {
position: absolute;
@@ -381,3 +315,77 @@
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
/* Lists inherit the viewport boundary; controls and pagination never join data scrolling. */
.research-list {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
min-width: 0;
border: 1px solid var(--line);
border-radius: 6px;
overflow: hidden;
}
.research-list-filters,
.research-list-actions {
display: flex;
flex-wrap: wrap;
align-items: center;
flex: 0 0 auto;
gap: 12px;
padding: 12px;
}
.research-list-filters {
border-bottom: 1px solid var(--line);
}
.research-list-filters > .semi-input-wrapper {
flex: 1;
min-width: 160px;
}
.research-list-filters > .research-toolbar {
width: 100%;
}
.research-list .research-toolbar {
margin: 0;
}
.research-list-scroll {
flex: 1;
min-height: 0;
min-width: 0;
overflow: auto;
overscroll-behavior: contain;
}
.research-list-scroll .research-table th {
position: sticky;
top: 0;
z-index: 1;
background: var(--canvas);
}
.research-list-empty {
padding: 40px 16px;
text-align: center;
}
.research-detail .semi-sidesheet-body {
min-height: 0;
overflow: auto;
overscroll-behavior: contain;
}
.research-detail-content {
min-width: 0;
color: var(--ink);
}
.research-detail-content .research-main {
display: flex;
flex-direction: column;
gap: 16px;
}
.quantflow-detail-body {
flex: 1;
min-height: 0;
overflow: auto;
}
.quantflow-detail-actions {
flex-shrink: 0;
padding: 8px 0 12px;
}