Commit 0f27f1d4 by 李伟康

style(chat): 优化聊天界面样式布局

- 调整 question 组件的 group 样式,添加 flex 布局和居中对齐
- 移除 question 组件中多余的 line-height 属性
- 优化 toast 组件样式,添加 fit-content 宽度以适配内容
1 parent 6236ee12
...@@ -60,7 +60,9 @@ ...@@ -60,7 +60,9 @@
} }
&-group { &-group {
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0; flex-shrink: 0;
padding: 0 8px; padding: 0 8px;
border-radius: 16px; border-radius: 16px;
...@@ -68,7 +70,6 @@ ...@@ -68,7 +70,6 @@
color: #4f72ff; color: #4f72ff;
font-size: 13px; font-size: 13px;
height: 26px; height: 26px;
line-height: 26px;
margin-right: 4px; margin-right: 4px;
} }
......
...@@ -41,7 +41,8 @@ const Toast = ({ type = 'info', size = 'md', message, children, className, custo ...@@ -41,7 +41,8 @@ const Toast = ({ type = 'info', size = 'md', message, children, className, custo
style={{ style={{
transform: 'translateX(-50%)', transform: 'translateX(-50%)',
maxWidth: '91vw', maxWidth: '91vw',
borderRadius: '54px' borderRadius: '54px',
width: 'fit-content',
}} }}
> >
<div className="absolute inset-0 -z-10" style={{ backgroundColor: 'rgba(0, 0, 0, 0.5)' }} /> <div className="absolute inset-0 -z-10" style={{ backgroundColor: 'rgba(0, 0, 0, 0.5)' }} />
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!