merge: 合并 master,保留拖拽上传样式和工具面板样式
This commit is contained in:
@@ -759,3 +759,192 @@
|
||||
font-weight: 600;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* Tool Modal Overlay */
|
||||
.studio-canvas-tool-modal-overlay {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 9000;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background: rgba(0, 0, 0, 0.55);
|
||||
backdrop-filter: blur(4px);
|
||||
}
|
||||
|
||||
.studio-canvas-tool-modal {
|
||||
position: relative;
|
||||
width: 90vw;
|
||||
max-width: 720px;
|
||||
max-height: 80vh;
|
||||
overflow-y: auto;
|
||||
border-radius: 16px;
|
||||
background: var(--bg-panel);
|
||||
border: 1px solid var(--border-subtle);
|
||||
box-shadow: var(--shadow-heavy, 0 12px 40px rgba(0,0,0,0.4));
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-modal__header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-modal__title {
|
||||
font-size: 16px;
|
||||
font-weight: 600;
|
||||
color: var(--fg-default);
|
||||
}
|
||||
|
||||
.studio-canvas-tool-modal__close {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
background: var(--bg-subtle);
|
||||
color: var(--fg-muted);
|
||||
cursor: pointer;
|
||||
font-size: 18px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: background 0.15s;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-modal__close:hover {
|
||||
background: var(--bg-hover);
|
||||
}
|
||||
|
||||
/* Tool Panel Components */
|
||||
.studio-canvas-tool-panel {
|
||||
display: flex;
|
||||
gap: 20px;
|
||||
min-height: 280px;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel--inpaint {
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__preview {
|
||||
flex: 0 0 260px;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-subtle);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__preview img {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__controls {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__label {
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: var(--fg-muted);
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__options {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__options button {
|
||||
padding: 6px 16px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: var(--bg-subtle);
|
||||
color: var(--fg-default);
|
||||
cursor: pointer;
|
||||
font-size: 13px;
|
||||
transition: all 0.15s;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__options button.is-active {
|
||||
background: var(--accent);
|
||||
border-color: var(--accent);
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__textarea {
|
||||
width: 100%;
|
||||
min-height: 60px;
|
||||
padding: 10px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: var(--bg-subtle);
|
||||
color: var(--fg-default);
|
||||
font-size: 13px;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__submit {
|
||||
margin-top: auto;
|
||||
padding: 10px 20px;
|
||||
border-radius: 8px;
|
||||
border: none;
|
||||
background: var(--accent);
|
||||
color: #fff;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
transition: opacity 0.15s;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__submit:disabled {
|
||||
opacity: 0.5;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__actions {
|
||||
display: flex;
|
||||
gap: 10px;
|
||||
margin-top: auto;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__reset {
|
||||
padding: 10px 16px;
|
||||
border-radius: 8px;
|
||||
border: 1px solid var(--border-subtle);
|
||||
background: var(--bg-subtle);
|
||||
color: var(--fg-default);
|
||||
font-size: 13px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__canvas-wrap {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
max-height: 320px;
|
||||
border-radius: 10px;
|
||||
overflow: hidden;
|
||||
background: var(--bg-subtle);
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__canvas-bg {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
}
|
||||
|
||||
.studio-canvas-tool-panel__canvas {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
cursor: crosshair;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,3 +15,10 @@
|
||||
.profile-page__works-scroll .profile-page__list-grid {
|
||||
grid-template-columns: repeat(3, 1fr); /* 固定3列,刚好3×3=9个可见 */
|
||||
}
|
||||
|
||||
/* Dashboard uses natural page scrolling instead of a nested works scroller. */
|
||||
.profile-page--dashboard .profile-page__works-scroll {
|
||||
max-height: none;
|
||||
overflow: visible;
|
||||
scrollbar-width: auto;
|
||||
}
|
||||
|
||||
@@ -3291,6 +3291,141 @@
|
||||
color: var(--report-green);
|
||||
}
|
||||
|
||||
.script-eval-report__detail-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 14px;
|
||||
margin: 0 18px 18px;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-card {
|
||||
min-width: 0;
|
||||
border: 1px solid rgb(255 255 255 / 6%);
|
||||
border-radius: var(--v5-radius-md);
|
||||
background: linear-gradient(180deg, rgb(255 255 255 / 3.4%), transparent), var(--report-row);
|
||||
padding: 14px;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-head {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-head div {
|
||||
display: grid;
|
||||
gap: 4px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-head span {
|
||||
color: #dfe8e4;
|
||||
font-size: 14px;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-head strong {
|
||||
color: var(--report-green);
|
||||
font-size: 22px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-head small {
|
||||
color: #7e8a86;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-head em {
|
||||
flex-shrink: 0;
|
||||
border: 1px solid rgb(0 255 136 / 18%);
|
||||
border-radius: 999px;
|
||||
background: rgb(0 255 136 / 7%);
|
||||
color: #98e8bd;
|
||||
padding: 4px 8px;
|
||||
font-size: 12px;
|
||||
font-style: normal;
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-hint,
|
||||
.script-eval-report__detail-empty {
|
||||
margin: 10px 0 0;
|
||||
color: #7f8c88;
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.script-eval-report__subscore-list {
|
||||
display: grid;
|
||||
gap: 9px;
|
||||
margin-top: 13px;
|
||||
}
|
||||
|
||||
.script-eval-report__subscore-row {
|
||||
display: grid;
|
||||
grid-template-columns: minmax(62px, 86px) minmax(0, 1fr) 34px;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: #bdcbc6;
|
||||
font-size: 12px;
|
||||
font-weight: 750;
|
||||
}
|
||||
|
||||
.script-eval-report__subscore-row span {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.script-eval-report__subscore-row b {
|
||||
color: #dfe8e4;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.script-eval-report__subscore-bar {
|
||||
height: 7px;
|
||||
overflow: hidden;
|
||||
border-radius: 999px;
|
||||
background: rgb(255 255 255 / 5%);
|
||||
}
|
||||
|
||||
.script-eval-report__subscore-bar i {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: inherit;
|
||||
background: linear-gradient(90deg, #18de8a, #a3f7c1);
|
||||
}
|
||||
|
||||
.script-eval-report__evidence-list {
|
||||
display: grid;
|
||||
gap: 7px;
|
||||
margin: 13px 0 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
.script-eval-report__evidence-list li {
|
||||
position: relative;
|
||||
padding-left: 13px;
|
||||
color: #aebcb7;
|
||||
font-size: 12px;
|
||||
font-weight: 650;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.script-eval-report__evidence-list li::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0.62em;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 50%;
|
||||
background: var(--report-green);
|
||||
}
|
||||
|
||||
.script-eval-report__findings {
|
||||
gap: 18px;
|
||||
}
|
||||
@@ -3339,6 +3474,10 @@
|
||||
.script-eval-report--inside .script-eval-report__body {
|
||||
padding-inline: 24px;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-grid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 900px) {
|
||||
@@ -3358,6 +3497,19 @@
|
||||
}
|
||||
|
||||
@media (max-width: 680px) {
|
||||
.script-eval-report__detail-grid {
|
||||
grid-template-columns: 1fr;
|
||||
margin-inline: 0;
|
||||
}
|
||||
|
||||
.script-eval-report__detail-card {
|
||||
padding: 12px;
|
||||
}
|
||||
|
||||
.script-eval-report__subscore-row {
|
||||
grid-template-columns: minmax(58px, 78px) minmax(0, 1fr) 30px;
|
||||
}
|
||||
|
||||
.script-eval-v5 {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -9,10 +9,10 @@
|
||||
|
||||
.wb-prompt-cases__grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
|
||||
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
|
||||
grid-auto-flow: dense;
|
||||
grid-auto-rows: 10px;
|
||||
gap: 10px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.wb-prompt-case-card {
|
||||
@@ -34,22 +34,22 @@
|
||||
|
||||
.wb-prompt-case-card--ratio-wide {
|
||||
grid-column: span 1;
|
||||
grid-row: span 8;
|
||||
grid-row: span 13;
|
||||
}
|
||||
|
||||
.wb-prompt-case-card--ratio-tall {
|
||||
grid-column: span 1;
|
||||
grid-row: span 23;
|
||||
grid-row: span 30;
|
||||
}
|
||||
|
||||
.wb-prompt-case-card--ratio-square {
|
||||
grid-column: span 1;
|
||||
grid-row: span 13;
|
||||
grid-row: span 18;
|
||||
}
|
||||
|
||||
.wb-prompt-case-card--ratio-portrait {
|
||||
grid-column: span 1;
|
||||
grid-row: span 16;
|
||||
grid-row: span 24;
|
||||
}
|
||||
|
||||
.wb-prompt-case-card img {
|
||||
@@ -328,7 +328,7 @@
|
||||
|
||||
@media (max-width: 980px) {
|
||||
.wb-prompt-cases__grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
grid-auto-rows: 8px;
|
||||
gap: 8px;
|
||||
}
|
||||
@@ -387,7 +387,7 @@
|
||||
|
||||
@media (max-width: 560px) {
|
||||
.wb-prompt-cases__grid {
|
||||
grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
grid-auto-rows: 8px;
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user