Files
cameleer-server/ui/src/components/EnvEditor.module.css
hsiegeln 1a45235e30
All checks were successful
CI / cleanup-branch (push) Has been skipped
CI / build (push) Successful in 1m12s
CI / docker (push) Successful in 1m32s
CI / deploy-feature (push) Has been skipped
CI / deploy (push) Successful in 38s
feat: multi-format env var editor for deployment config
Replace simple key-value rows with EnvEditor component that supports
editing variables as Table, Properties, YAML, or .env format.
Switching views converts data seamlessly. Includes file import
(drag-and-drop .properties/.yaml/.env) with auto-detect and merge.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-11 08:16:09 +02:00

92 lines
1.3 KiB
CSS

.wrap {
display: flex;
flex-direction: column;
gap: 8px;
}
.toolbar {
display: flex;
align-items: center;
gap: 8px;
}
.actions {
margin-left: auto;
display: flex;
gap: 6px;
}
.tableBody {
display: flex;
flex-direction: column;
gap: 4px;
}
.row {
display: flex;
gap: 8px;
align-items: center;
}
.rowKey {
width: 220px;
flex-shrink: 0;
}
.rowValue {
flex: 1;
}
.deleteBtn {
background: none;
border: none;
color: var(--text-muted);
cursor: pointer;
font-size: 16px;
padding: 4px;
border-radius: var(--radius-sm);
transition: color 0.1s;
}
.deleteBtn:hover {
color: var(--error);
}
.deleteBtn:disabled {
opacity: 0.3;
cursor: default;
}
.textEditor {
width: 100%;
min-height: 180px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-raised);
color: var(--text-primary);
font-family: var(--font-mono);
font-size: 12px;
line-height: 1.6;
resize: vertical;
outline: none;
transition: border-color 0.15s, box-shadow 0.15s;
tab-size: 2;
}
.textEditor:focus {
border-color: var(--amber);
box-shadow: 0 0 0 3px var(--amber-bg);
}
.importZone {
margin-top: 4px;
}
.empty {
padding: 24px;
text-align: center;
color: var(--text-faint);
font-size: 12px;
}