imeeting/frontend/src/pages/business/PromptTemplates.css

157 lines
2.9 KiB
CSS

.prompt-templates-page {
padding: 8px;
min-width: 0;
background: #f5f6fa;
}
.prompt-templates-page > .page-container__body {
padding: 0;
overflow: hidden;
border: none;
border-radius: 0;
background: transparent;
}
.prompt-templates-list-panel .data-list-panel__table-area {
overflow: hidden;
}
.prompt-templates-table.ant-table-wrapper,
.prompt-templates-table.ant-table-wrapper .ant-spin-nested-loading,
.prompt-templates-table.ant-table-wrapper .ant-spin-container,
.prompt-templates-table.ant-table-wrapper .ant-table,
.prompt-templates-table.ant-table-wrapper .ant-table-container {
height: 100%;
min-height: 0;
}
.prompt-templates-table .ant-table-row {
cursor: pointer;
}
.prompt-templates-table .ant-table-cell {
vertical-align: middle;
}
.prompt-template-name-cell {
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.prompt-template-name-cell > .ant-typography {
max-width: 100%;
margin: 0;
}
.prompt-template-description.ant-typography {
display: block;
max-width: 360px;
color: #9095a1;
font-size: 12px;
}
.prompt-template-level-tag.ant-tag,
.prompt-template-tags-cell .ant-tag {
margin: 0;
border-radius: 4px;
}
.prompt-templates-table .ant-btn {
width: 24px;
height: 24px;
border-radius: 4px;
}
.prompt-templates-search {
justify-content: flex-end;
gap: 8px 0;
}
.prompt-templates-search .ant-form-item {
margin-inline-end: 8px;
}
.prompt-templates-search__name {
width: 180px;
}
.prompt-templates-search__category {
width: 160px;
}
.prompt-template-detail {
max-height: 65vh;
overflow-y: auto;
padding: 12px 0;
}
.prompt-template-detail__description {
margin-bottom: 16px;
padding: 12px 16px;
border-radius: 4px;
background: var(--app-bg-surface-soft);
}
.prompt-template-detail__section {
margin-bottom: 16px;
}
.prompt-template-detail__section-title {
margin-bottom: 8px;
font-weight: 600;
}
.prompt-template-drawer__title {
margin: 0 !important;
}
.prompt-template-editor {
height: calc(100vh - 400px);
}
.prompt-template-editor__col {
height: 100%;
}
.prompt-template-editor__input {
height: 100% !important;
padding: 12px;
resize: none;
border: 1px solid #d9d9d9;
border-radius: 4px;
font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}
.prompt-template-editor__preview {
height: 100%;
overflow-y: auto;
padding: 16px 24px;
border: 1px solid var(--app-border-color);
border-radius: 4px;
background: var(--app-bg-surface-soft);
}
.prompt-template-editor__preview-meta {
margin-bottom: 12px;
}
@media (max-width: 768px) {
.prompt-templates-search,
.prompt-templates-search .ant-form-item,
.prompt-templates-search .ant-input,
.prompt-templates-search .ant-select {
width: 100% !important;
}
.prompt-template-editor {
height: auto;
}
.prompt-template-editor__col,
.prompt-template-editor__preview {
height: 320px;
}
}