Files
leaudit-platform-frontend/app/styles/components/dify-dataset-manager/index.css
T
2025-11-30 21:28:49 +08:00

257 lines
4.4 KiB
CSS

/**
* 知识库管理器 - 白色卡片风格
*/
/* 外层容器 - 直接占满,与大模型对话一致 */
.dataset-manager-wrapper {
display: flex;
flex-direction: column;
height: 100%;
background: #fff;
overflow: hidden;
border-radius: 0.5rem;
}
/* 卡片容器 - 无边框阴影,直接融入 */
.dataset-manager-card {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
background: #fff;
overflow: hidden;
}
/* 加载状态 */
.dataset-loading-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
gap: 16px;
}
.dataset-loading-state .loading-text {
color: #666;
font-size: 14px;
}
/* Spin 组件主题色 */
.dataset-loading-state .ant-spin .ant-spin-dot-item,
.dataset-loading .ant-spin .ant-spin-dot-item {
background-color: rgb(0 104 74);
}
/* 错误状态 */
.dataset-error-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
height: 100%;
padding: 40px;
text-align: center;
}
.dataset-error-state .error-icon {
font-size: 48px;
color: #ff4d4f;
margin-bottom: 16px;
}
.dataset-error-state h3 {
font-size: 18px;
font-weight: 600;
color: #1a1a1a;
margin: 0 0 8px 0;
}
.dataset-error-state p {
font-size: 14px;
color: #666;
margin: 0;
}
/* 内容区域 */
.dataset-content {
display: flex;
flex-direction: column;
flex: 1;
min-height: 0;
padding: 24px;
overflow: hidden;
}
/* 头部区域 */
.dataset-header {
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
padding-bottom: 16px;
border-bottom: 1px solid #f0f0f0;
margin-bottom: 16px;
}
.dataset-header h1 {
font-size: 18px;
font-weight: 600;
color: #1a1a1a;
margin: 0;
}
.dataset-header-actions {
display: flex;
gap: 12px;
}
/* 工具栏 */
.document-list-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
flex-shrink: 0;
margin-bottom: 16px;
}
.document-list-search {
width: 280px;
}
.document-list-actions {
display: flex;
align-items: center;
gap: 12px;
}
/* 表格容器 - 唯一滚动区域 */
.document-table-container {
flex: 1;
min-height: 0;
overflow-y: auto;
overflow-x: hidden;
}
.document-table {
background: transparent;
}
.document-table .ant-table-wrapper,
.document-table .ant-table,
.document-table .ant-table-container {
background: transparent;
}
/* 固定表头 */
.document-table .ant-table-thead > tr > th {
background: #fafafa;
font-weight: 600;
font-size: 13px;
color: #1a1a1a;
padding: 8px 12px !important;
position: sticky;
top: 0;
z-index: 10;
}
/* 压缩行高 */
.document-table .ant-table-tbody > tr > td {
padding: 6px 12px !important;
font-size: 13px;
}
.document-table .ant-table-tbody > tr:hover > td {
background: #f5f7f9;
}
/* 固定底部分页器 */
.document-pagination {
display: flex;
justify-content: space-between;
align-items: center;
padding: 12px 0;
border-top: 1px solid #f0f0f0;
flex-shrink: 0;
background: #fff;
}
.pagination-total {
color: #666;
font-size: 14px;
}
.pagination-controls {
display: flex;
align-items: center;
gap: 12px;
}
.pagination-info {
color: #666;
font-size: 14px;
}
/* 空状态 */
.dataset-empty {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
padding: 60px 40px;
color: #999;
}
/* 加载状态 */
.dataset-loading {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
flex: 1;
gap: 16px;
}
/* 响应式 */
@media (max-width: 991px) {
.dataset-content {
padding: 16px;
}
.dataset-header {
flex-direction: column;
align-items: flex-start;
gap: 12px;
}
.dataset-header-actions {
width: 100%;
justify-content: flex-end;
}
.document-list-toolbar {
flex-direction: column;
align-items: stretch;
gap: 12px;
}
.document-list-search {
width: 100%;
}
.document-list-actions {
justify-content: space-between;
}
}
@media (max-width: 576px) {
.dataset-content {
padding: 12px;
}
.dataset-header h1 {
font-size: 16px;
}
}