mirror of
https://github.com/discourse/discourse-ai.git
synced 2025-07-09 15:43:28 +00:00
This PR is a retry of: #1135, where we migrate AiTools form to FormKit. The previous PR accidentally removed code related to setting enum values, and as a result was reverted. This update includes enums correctly along with the previous updates.
61 lines
952 B
SCSS
61 lines
952 B
SCSS
.ai-tool-parameter {
|
|
padding: 1.5em;
|
|
border: 1px solid var(--primary-low-mid);
|
|
border-radius: var(--d-input-border-radius);
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
|
|
.form-kit__container-content {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
}
|
|
|
|
.ai-tool-parameter__enum-values {
|
|
margin-block: 1rem;
|
|
|
|
.form-kit__container-content {
|
|
display: grid;
|
|
grid-template-columns: 1fr auto;
|
|
position: relative;
|
|
|
|
.form-kit__button.btn-icon-text {
|
|
justify-self: start;
|
|
grid-column: 1 / -1;
|
|
}
|
|
}
|
|
}
|
|
|
|
.ai-tool-editor {
|
|
max-width: 80%;
|
|
position: relative;
|
|
|
|
#control-rag_uploads .rag-uploader {
|
|
h3,
|
|
p {
|
|
display: none;
|
|
}
|
|
}
|
|
}
|
|
|
|
.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;
|
|
}
|
|
}
|
|
}
|