feat(chat): 优化分析过程与结果展示
This commit is contained in:
@@ -118,19 +118,10 @@ const PermissionRequestCard = ({
|
||||
sx={{
|
||||
borderRadius: 3,
|
||||
overflow: "hidden",
|
||||
border: `1px solid ${alpha("#fff", 0.72)}`,
|
||||
bgcolor: alpha("#fff", 0.5),
|
||||
boxShadow: `0 8px 24px ${alpha("#000", 0.05)}`,
|
||||
backdropFilter: "blur(20px)",
|
||||
border: `1px solid ${alpha(accentColor, 0.18)}`,
|
||||
bgcolor: alpha(accentColor, 0.035),
|
||||
boxShadow: `0 6px 18px ${alpha("#000", 0.04)}`,
|
||||
position: "relative",
|
||||
"&::before": {
|
||||
content: '""',
|
||||
position: "absolute",
|
||||
inset: "10px auto 10px 0",
|
||||
width: 3,
|
||||
borderRadius: "0 999px 999px 0",
|
||||
bgcolor: accentColor,
|
||||
},
|
||||
}}
|
||||
>
|
||||
<Stack
|
||||
@@ -180,6 +171,22 @@ const PermissionRequestCard = ({
|
||||
</Stack>
|
||||
|
||||
<Stack spacing={1.15} sx={{ px: 1.5, pt: 1.25, pb: 1.35, pl: 1.75 }}>
|
||||
<Box
|
||||
sx={{
|
||||
px: 1.25,
|
||||
py: 1,
|
||||
borderRadius: 2.5,
|
||||
bgcolor: alpha(accentColor, 0.055),
|
||||
border: `1px solid ${alpha(accentColor, 0.12)}`,
|
||||
}}
|
||||
>
|
||||
<Typography variant="caption" color="text.secondary" fontWeight={800}>
|
||||
执行目的
|
||||
</Typography>
|
||||
<Typography variant="body2" sx={{ mt: 0.25, lineHeight: 1.55 }}>
|
||||
{permission.reason?.trim() || "Agent 未提供执行目的"}
|
||||
</Typography>
|
||||
</Box>
|
||||
<Box
|
||||
sx={{
|
||||
px: 1.25,
|
||||
|
||||
Reference in New Issue
Block a user