File size: 5,370 Bytes
bc9f3e6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 | /* ==========================================================================
Chat control panels — shared styles for RagControls / DrControls /
VisionControls (the mini-field rows, image upload chip + preview).
The `.chip` base style these build on lives in app.css (shared with the
migrated tabs); `.chip upload-chip` extends it here.
========================================================================== */
/* RAG-only Knowledge Base status notice — existing files · chunks + a
link that jumps to the Knowledge Base tab. */
.kb-notice {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
flex-wrap: wrap;
margin-bottom: 10px;
padding: 6px 12px;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: var(--bg-soft);
font-size: 12.5px;
color: var(--ink);
}
.kb-notice span {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.kb-link {
border: none;
background: transparent;
color: var(--accent);
font-family: inherit;
font-size: 12.5px;
cursor: pointer;
padding: 2px 4px;
white-space: nowrap;
}
.kb-link:hover {
text-decoration: underline;
color: var(--accent-deep);
}
.theme-row {
display: flex;
gap: 10px;
margin-bottom: 10px;
flex-wrap: wrap;
}
/* Data Analysis tab: the bilingual model-guidance note above the analysis
settings — a quiet hint that the CodeAgent needs a capable model, so
users don't run it on the tiny default E2B. Uses shared tokens so dark
mode re-maps it automatically. */
.data-model-tip {
margin: 0 0 10px;
padding: 6px 10px;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: var(--bg-soft);
color: var(--ink-soft);
font-size: 12px;
line-height: 1.45;
}
.mini-field {
display: flex;
align-items: center;
gap: 8px;
border: 1px solid var(--line);
background: var(--bg-soft);
border-radius: var(--radius-sm);
padding: 4px 10px;
}
.mini-field span {
font-size: 12px;
color: var(--ink-faint);
white-space: nowrap;
}
.mini-field input {
border: none;
outline: none;
background: transparent;
color: var(--ink);
font-family: inherit;
font-size: 13px;
width: 130px;
}
.mini-field input::placeholder {
color: var(--ink-faint);
}
.mini-field input[type="number"] {
width: 64px;
}
.mini-field select.mini-select {
border: none;
outline: none;
background: transparent;
color: var(--ink);
font-family: inherit;
font-size: 13px;
max-width: 220px;
cursor: pointer;
}
.mini-field select.mini-select option {
background: var(--bg-soft, #1e1e1e);
color: var(--ink, #eee);
}
/* VisionControls image row */
.image-row {
display: flex;
align-items: center;
gap: 10px;
margin-bottom: 10px;
flex-wrap: wrap;
}
/* RAG file picker chips — the selected KB source filenames shown under
the Theme/Subtheme/Files row, each with a ✕ remove button. */
.rag-files {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin: -2px 0 10px;
}
.file-chip {
max-width: 240px;
}
.file-chip-name {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.chip-x {
border: none;
outline: none;
background: transparent;
color: var(--ink-faint);
font-size: 12px;
line-height: 1;
cursor: pointer;
padding: 2px;
border-radius: 4px;
}
.chip-x:hover,
.chip-x:focus-visible {
color: var(--danger, #b4453a);
background: rgba(255, 255, 255, 0.08);
}
.upload-chip {
cursor: pointer;
user-select: none;
}
.upload-chip:hover {
border-color: var(--accent);
color: var(--accent-ink);
}
.img-preview {
position: relative;
display: inline-flex;
}
.img-preview img {
height: 44px;
width: auto;
max-width: 160px;
border-radius: var(--radius-sm);
border: 1px solid var(--line);
object-fit: cover;
background: var(--bg-soft);
}
.img-remove {
position: absolute;
top: -7px;
right: -7px;
width: 18px;
height: 18px;
border: none;
border-radius: 50%;
background: var(--accent);
color: #fff;
font-size: 12px;
line-height: 1;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.img-remove:hover {
background: var(--accent-deep);
}
/* Data Analysis tab: the uploaded file chips next to the upload chip. */
.file-chip {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 220px;
overflow: hidden;
font-size: 0.8rem;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
padding: 3px 6px 3px 8px;
background: var(--bg-elev);
color: var(--ink);
}
.file-chip .file-remove {
border: none;
background: transparent;
color: var(--ink-faint);
cursor: pointer;
font-size: 0.9rem;
line-height: 1;
padding: 0 2px;
}
.file-chip .file-remove:hover {
color: var(--err);
}
/* DataControls — the charts folder row (full path + Open button) */
.data-out-row {
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.data-out-btn {
border: 1px solid var(--line);
background: var(--bg-elev);
color: var(--ink);
border-radius: 999px;
padding: 4px 12px;
font-size: 12px;
cursor: pointer;
white-space: nowrap;
}
.data-out-btn:hover {
border-color: var(--accent);
}
.data-out-path {
font-size: 11px;
color: var(--ink-soft);
word-break: break-all;
user-select: all;
}
|