style:优化提示词工坊-提示词卡片样式和布局
This commit is contained in:
@@ -495,7 +495,7 @@ export default function PromptWorkshop() {
|
|||||||
flex: 1,
|
flex: 1,
|
||||||
minHeight: 60,
|
minHeight: 60,
|
||||||
}}
|
}}
|
||||||
ellipsis={{ rows: 3, tooltip: item.prompt_content }}
|
ellipsis={{ rows: 3 }}
|
||||||
>
|
>
|
||||||
{item.prompt_content}
|
{item.prompt_content}
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
@@ -1184,15 +1184,17 @@ export default function PromptWorkshop() {
|
|||||||
</Paragraph>
|
</Paragraph>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<div style={{
|
<div style={{
|
||||||
backgroundColor: '#f5f5f5',
|
backgroundColor: '#f5f5f5',
|
||||||
padding: 16,
|
padding: 16,
|
||||||
borderRadius: 8,
|
borderRadius: 8,
|
||||||
marginBottom: 16,
|
marginBottom: 16,
|
||||||
|
maxHeight: 400,
|
||||||
|
overflow: 'auto',
|
||||||
}}>
|
}}>
|
||||||
<Text strong style={{ display: 'block', marginBottom: 8 }}>提示词内容</Text>
|
<Text strong style={{ display: 'block', marginBottom: 8 }}>提示词内容</Text>
|
||||||
<pre style={{
|
<pre style={{
|
||||||
whiteSpace: 'pre-wrap',
|
whiteSpace: 'pre-wrap',
|
||||||
wordBreak: 'break-word',
|
wordBreak: 'break-word',
|
||||||
margin: 0,
|
margin: 0,
|
||||||
fontSize: 13,
|
fontSize: 13,
|
||||||
|
|||||||
Reference in New Issue
Block a user