feat: ship self-hosted KOC LOOP workflows
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
:root {
|
||||
--font-geist-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
|
||||
--ink: #15221f;
|
||||
--ink-soft: #354640;
|
||||
--green: #1e8d68;
|
||||
@@ -173,6 +174,140 @@ button:disabled {
|
||||
box-shadow: 0 1px 2px rgb(15 31 26 / 0.03);
|
||||
}
|
||||
|
||||
.screenshot-task-detail .document-label:first-of-type {
|
||||
margin-top: 26px;
|
||||
}
|
||||
|
||||
.screenshot-task-detail .note-title-row h1 {
|
||||
color: var(--green-deep);
|
||||
}
|
||||
|
||||
.task-result-picker {
|
||||
min-height: 160px;
|
||||
}
|
||||
|
||||
.task-result-label-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
}
|
||||
|
||||
.task-result-label-row small {
|
||||
color: #7f8b87;
|
||||
font-size: 8px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.task-result-gallery {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, minmax(0, 1fr));
|
||||
gap: 9px;
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.task-result-thumb,
|
||||
.task-result-add {
|
||||
position: relative;
|
||||
min-height: 112px;
|
||||
overflow: hidden;
|
||||
border: 1px solid #d8e2dd;
|
||||
border-radius: 11px;
|
||||
background: #f6f9f7;
|
||||
}
|
||||
|
||||
.task-result-thumb {
|
||||
display: block;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
border: 1px solid #d8e2dd;
|
||||
color: inherit;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
|
||||
.task-result-thumb img {
|
||||
width: 100%;
|
||||
height: 112px;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.task-result-thumb > span {
|
||||
position: absolute;
|
||||
right: 6px;
|
||||
bottom: 6px;
|
||||
padding: 4px 6px;
|
||||
border-radius: 7px;
|
||||
color: #267257;
|
||||
background: rgb(238 249 244 / 0.94);
|
||||
font-size: 7px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.task-result-thumb.pending-upload > span {
|
||||
color: #8a643f;
|
||||
background: rgb(255 245 233 / 0.94);
|
||||
}
|
||||
|
||||
.task-result-thumb button {
|
||||
position: absolute;
|
||||
top: 6px;
|
||||
right: 6px;
|
||||
display: grid;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
place-items: center;
|
||||
padding: 0;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
color: white;
|
||||
background: rgb(17 48 39 / 0.78);
|
||||
font-size: 15px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.task-result-add {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
border-style: dashed;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.task-result-add input {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.task-result-add b {
|
||||
display: grid;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
place-items: center;
|
||||
border-radius: 50%;
|
||||
color: var(--green);
|
||||
background: var(--green-soft);
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
.task-result-add strong {
|
||||
margin-top: 8px;
|
||||
font-size: 8px;
|
||||
}
|
||||
|
||||
.task-result-hint {
|
||||
display: block;
|
||||
margin-top: 8px;
|
||||
color: #8c9793;
|
||||
font-size: 7px;
|
||||
line-height: 1.55;
|
||||
}
|
||||
|
||||
.claim-card {
|
||||
min-height: 430px;
|
||||
padding: 28px;
|
||||
@@ -1171,6 +1306,19 @@ footer {
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.evidence-field {
|
||||
display: block;
|
||||
margin-top: 18px;
|
||||
}
|
||||
|
||||
.evidence-field > span {
|
||||
display: block;
|
||||
margin-bottom: 7px;
|
||||
color: #52605b;
|
||||
font-size: 9px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.field-hint {
|
||||
color: #98a29e;
|
||||
font-size: 8px;
|
||||
@@ -1286,6 +1434,142 @@ footer {
|
||||
min-height: 96px;
|
||||
}
|
||||
|
||||
.screenshot-picker.preview-mode {
|
||||
align-items: stretch;
|
||||
justify-content: flex-start;
|
||||
padding: 8px;
|
||||
background: #f7faf8;
|
||||
}
|
||||
|
||||
.evidence-empty-state {
|
||||
display: flex;
|
||||
min-height: 82px;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.evidence-preview-button {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
background: #eaf1ed;
|
||||
cursor: zoom-in;
|
||||
}
|
||||
|
||||
.evidence-preview-button img {
|
||||
width: 100%;
|
||||
max-height: 260px;
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
}
|
||||
|
||||
.evidence-preview-button.compact-preview img {
|
||||
max-height: 210px;
|
||||
}
|
||||
|
||||
.evidence-preview-button > span {
|
||||
position: absolute;
|
||||
right: 8px;
|
||||
bottom: 8px;
|
||||
padding: 5px 8px;
|
||||
border-radius: 8px;
|
||||
color: white;
|
||||
background: rgb(17 48 39 / 0.78);
|
||||
font-size: 7px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.evidence-upload-action {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 34px;
|
||||
display: grid;
|
||||
margin-top: 8px !important;
|
||||
place-items: center;
|
||||
overflow: hidden;
|
||||
border: 1px solid #c5dcd2;
|
||||
border-radius: 8px;
|
||||
color: var(--green-deep);
|
||||
background: #eef7f3;
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.evidence-upload-action input {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.image-lightbox {
|
||||
position: fixed;
|
||||
z-index: 1000;
|
||||
inset: 0;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
padding: 18px;
|
||||
background: rgb(9 25 20 / 0.78);
|
||||
}
|
||||
|
||||
.image-lightbox-card {
|
||||
width: min(920px, 100%);
|
||||
max-height: calc(100vh - 36px);
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
border: 1px solid rgb(255 255 255 / 0.2);
|
||||
border-radius: 16px;
|
||||
background: #f7faf8;
|
||||
box-shadow: 0 24px 80px rgb(0 0 0 / 0.32);
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
.image-lightbox-heading {
|
||||
display: flex;
|
||||
min-height: 48px;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 10px 14px;
|
||||
border-bottom: 1px solid #dce5e0;
|
||||
}
|
||||
|
||||
.image-lightbox-heading strong {
|
||||
overflow: hidden;
|
||||
color: var(--green-deep);
|
||||
font-size: 10px;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.image-lightbox-heading button {
|
||||
flex: 0 0 auto;
|
||||
height: 30px;
|
||||
padding: 0 12px;
|
||||
border: 1px solid #c7d8d0;
|
||||
border-radius: 8px;
|
||||
color: var(--green-deep);
|
||||
background: white;
|
||||
font-size: 8px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.image-lightbox-card > img {
|
||||
width: 100%;
|
||||
min-height: 0;
|
||||
max-height: calc(100vh - 102px);
|
||||
display: block;
|
||||
object-fit: contain;
|
||||
background: #14231e;
|
||||
}
|
||||
|
||||
.creator-metric-grid {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
@@ -1318,6 +1602,10 @@ footer {
|
||||
}
|
||||
|
||||
@media (width <= 520px) {
|
||||
.task-result-gallery {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
|
||||
.creator-metric-grid {
|
||||
grid-template-columns: 1fr;
|
||||
gap: 0;
|
||||
|
||||
Reference in New Issue
Block a user