1.添加移动端用户的检测工具类,移动端用户只能访问对话页面。

2.评查点列表添加文档属性类型字段。
3.优化dify的对话侧边栏的显示效果。
4.评查点规则添加使用文档属性类型的输入框。添加多实体开关的操作开关。
This commit is contained in:
2025-12-30 18:35:48 +08:00
parent d2aba899cc
commit 66d2f7cef4
18 changed files with 552 additions and 56 deletions
@@ -495,4 +495,56 @@
.source-item {
max-width: 180px;
}
/* 移动端 Tooltip 弹出框适配 */
.source-tooltip-overlay {
max-width: calc(100vw - 32px) !important;
left: 16px !important;
right: 16px !important;
}
.source-tooltip-overlay .ant-tooltip-inner {
max-width: 100%;
word-wrap: break-word;
overflow-wrap: break-word;
}
.source-tooltip {
max-width: 100%;
}
.source-tooltip-header {
word-wrap: break-word;
overflow-wrap: break-word;
}
.source-tooltip-content {
max-height: 40vh;
overflow-y: auto;
word-wrap: break-word;
overflow-wrap: break-word;
}
}
/* 小屏手机进一步优化 */
@media (max-width: 480px) {
.source-tooltip-overlay {
max-width: calc(100vw - 24px) !important;
left: 12px !important;
right: 12px !important;
}
.source-tooltip-content {
max-height: 35vh;
font-size: 11px;
line-height: 1.5;
}
.source-tooltip-header {
font-size: 12px;
}
.source-tooltip-meta {
font-size: 10px;
}
}
@@ -144,9 +144,40 @@
/* 小手机 - 480px以下 */
@media (max-width: 479px) {
.ant-layout-sider {
width: 100vw !important;
min-width: 100vw !important;
max-width: 100vw !important;
width: 70% !important;
min-width: 70% !important;
max-width: 70% !important;
}
}
/* ========== 移动端遮罩层样式 ========== */
/* 侧边栏遮罩层 - 作用域:移动端侧边栏展开时的半透明背景 */
.chat-sidebar-overlay {
display: none;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.45);
z-index: 999;
opacity: 0;
transition: opacity 0.3s ease;
pointer-events: none;
}
/* 遮罩层显示状态 */
.chat-sidebar-overlay.visible {
display: block;
opacity: 1;
pointer-events: auto;
}
/* 移动端显示遮罩层 */
@media (max-width: 991px) {
.chat-sidebar-overlay.visible {
display: block;
}
}
+17 -4
View File
@@ -67,6 +67,14 @@
.rules-page .ant-table {
width: 100%;
border-collapse: collapse;
table-layout: fixed;
}
/* 表格单元格自适应 */
.rules-page .ant-table td,
.rules-page .ant-table th {
word-wrap: break-word;
overflow-wrap: break-word;
}
@@ -85,9 +93,13 @@
}
/* 表格操作列样式 */
/* 表格操作列样式 - 自适应换行 */
.rules-page .operations-cell {
white-space: nowrap;
white-space: normal;
display: flex;
flex-wrap: wrap;
gap: 4px 8px;
align-items: center;
}
/* 操作按钮样式 - 改为文本按钮样式 */
@@ -105,7 +117,6 @@
}
.rules-page .operation-btn {
margin-right: 8px;
font-weight: normal;
display: inline-flex;
align-items: center;
@@ -114,10 +125,12 @@
color: #00684a;
border: none;
line-height: 1;
padding: 4px 8px;
padding: 4px 6px;
font-size: 13px;
text-decoration: none;
cursor: pointer;
white-space: nowrap;
flex-shrink: 0;
}
.rules-page .operation-btn i {