Commit 87fe1321 by liimin

```

fix(chat): 调整聊天气泡内边距以优化显示效果

将问答组件中的聊天气泡左右内边距由 `px-4` 调整为 `px-3`,
使内容展示更加紧凑,提升界面美观度与一致性。
```
1 parent 3b532497
......@@ -27,7 +27,7 @@ const Answer: FC<AnswerProps> = ({ chatAnswerContainerInner }) => {
<div
ref={contentRef}
className={cn(
'body-lg-regular relative inline-block max-w-full rounded-2xl rounded-bl-none bg-chat-bubble-bg px-4 py-3 text-text-primary',
'body-lg-regular relative inline-block max-w-full rounded-2xl rounded-bl-none bg-chat-bubble-bg px-3 py-3 text-text-primary',
workflowProcess && 'w-full',
)}>
<Operation />
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2025-06-23 15:19:04
* @LastEditors: limin
* @LastEditTime: 2025-12-08 19:06:24
* @LastEditTime: 2025-12-09 08:54:37
* @FilePath: \ai-assistant\app\components\base\chat\chat\question\init-questions.tsx
*/
import type { FC } from 'react'
......@@ -30,7 +30,7 @@ const InitQuestions: FC = () => {
<div className={cn('group relative pr-14')}>
<div
className={cn(
'body-lg-regular relative inline-block max-w-full rounded-2xl rounded-bl-none bg-chat-bubble-bg px-4 py-3 text-text-primary',
'body-lg-regular relative inline-block max-w-full rounded-2xl rounded-bl-none bg-chat-bubble-bg px-3 py-3 text-text-primary',
)}>
{initial_message && <Markdown content={initial_message} />}
{suggestedQuestions.length > 0 && <InitSuggest suggestedQuestions={suggestedQuestions} />}
......
......@@ -4,7 +4,7 @@
* @Author: limin
* @Date: 2025-04-16 18:17:38
* @LastEditors: limin
* @LastEditTime: 2025-12-08 19:11:28
* @LastEditTime: 2025-12-09 09:40:30
* @FilePath: \ai-assistant\app\components\base\chat\chat\question\question.tsx
*/
import type { FC } from 'react'
......@@ -21,7 +21,7 @@ const Question: FC = () => {
<div className="mb-2 flex justify-end pl-14 last:mb-0">
<div className={cn('group', 'relative', 'mr-2', 'max-w-full')}>
<div
className="rounded-2xl rounded-br-none bg-[#3773F8] px-4 py-3 text-sm text-gray-900"
className="rounded-2xl rounded-br-none bg-[#3773F8] px-3 py-3 text-sm text-gray-900"
style={theme?.chatBubbleColorStyle ? CssTransform(theme?.chatBubbleColorStyle) : {}}>
{/* {!!message_files?.length && <FileList files={message_files} showDeleteAction={false} showDownloadAction={true} />} */}
<Markdown content={content} className='!text-white' />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!