Sam b6483e416d
Revert "DEV: Convert tool editor to form kit (#1135)" (#1201)
This reverts commit 107f14456b0e4b51fd2b934ee7cceced78b2e0cc.

enum was not handled, so reverting for now
2025-03-18 18:07:04 +11:00

82 lines
1.2 KiB
SCSS

.ai-tool-parameter {
margin-bottom: 2em;
padding: 1.5em;
border: 1px solid var(--primary-low);
border-radius: 3px;
background-color: var(--secondary-very-low);
.parameter-row {
display: flex;
align-items: center;
margin-bottom: 1em;
input[type="text"] {
flex-grow: 1;
margin-right: 1em;
}
label {
margin-right: 1em;
white-space: nowrap;
}
}
.parameter-enum-values {
margin-top: 0.5em;
.enum-value-row {
display: flex;
align-items: center;
margin-bottom: 0.5em;
input[type="text"] {
flex-grow: 1;
margin-right: 0.5em;
}
}
}
}
.ai-tool-editor {
max-width: 80%;
position: relative;
.ace-wrapper {
border: 1px solid var(--primary-low);
max-width: 100%;
position: relative;
width: 100%;
height: 100%;
min-height: 500px;
.ace_editor {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
}
}
}
.ai-tool-test-modal {
&__test-result div {
ul {
padding-left: 1em;
}
}
}
.ai-tool-list-editor {
&__header {
display: flex;
justify-content: space-between;
align-items: center;
margin: 0 0 1em 0;
h3 {
margin: 0;
}
}
}