mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 00:46:42 +08:00
Refactor: UmiJs -> Vite (#12410)
### What problem does this PR solve? Refactor: UmiJs -> Vite+React ### Type of change - [x] Refactoring --------- Co-authored-by: Liu An <asiro@qq.com>
This commit is contained in:
56
web/src/components/floating-chat-widget-markdown.module.less
Normal file
56
web/src/components/floating-chat-widget-markdown.module.less
Normal file
@@ -0,0 +1,56 @@
|
||||
/* floating-chat-widget-markdown.less */
|
||||
|
||||
.widget-citation-popover {
|
||||
max-width: 90vw;
|
||||
/* Use viewport width for better responsiveness */
|
||||
width: max-content;
|
||||
|
||||
.ant-popover-inner {
|
||||
max-height: 400px;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.ant-popover-inner-content {
|
||||
padding: 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsive breakpoints for popover width */
|
||||
@media (min-width: 480px) {
|
||||
.widget-citation-popover {
|
||||
max-width: 360px;
|
||||
}
|
||||
}
|
||||
|
||||
.widget-citation-content {
|
||||
p,
|
||||
div,
|
||||
span,
|
||||
button {
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
white-space: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.floating-chat-widget {
|
||||
/* General styles for markdown content within the widget */
|
||||
p,
|
||||
div,
|
||||
ul,
|
||||
ol,
|
||||
blockquote {
|
||||
line-height: 1.6;
|
||||
}
|
||||
|
||||
/* Enhanced image styles */
|
||||
img,
|
||||
.ant-image,
|
||||
.ant-image-img {
|
||||
max-width: 100% !important;
|
||||
height: auto !important;
|
||||
border-radius: 8px;
|
||||
margin: 8px 0 !important;
|
||||
display: inline-block !important;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user