Skip to content

Commit b6a0385

Browse files
author
jiangpeiling
committed
🎨 Inappropriate rendering for examples in generated promt #688
1 parent 25b508f commit b6a0385

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

‎frontend/app/[locale]/setup/agents/components/PromptManager.tsx‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,12 @@ export function SimplePromptEditor({
4747
setInternalValue(e.target.value);
4848
onChange(e.target.value);
4949
}}
50-
style={height ? { height, resize: "none" } : { resize: "none" }}
51-
autoSize={height ? false : { minRows: 8, maxRows: 100 }}
50+
style={
51+
height
52+
? { height, resize: "none", overflow: "auto" }
53+
: { resize: "none", overflow: "hidden" }
54+
}
55+
autoSize={height ? false : { minRows: 8 }}
5256
bordered={bordered}
5357
/>
5458
);

‎frontend/styles/react-markdown.css‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,22 @@
136136
color: var(--color-nord0);
137137
}
138138

139+
/* Markdown table reset to prevent external zebra striping */
140+
.markdown-body table {
141+
border-collapse: collapse;
142+
}
143+
144+
.markdown-body table tr,
145+
.markdown-body table tr:nth-child(odd),
146+
.markdown-body table tr:nth-child(even) {
147+
background-color: transparent !important;
148+
}
149+
150+
.markdown-body table td,
151+
.markdown-body table th {
152+
background-color: transparent !important;
153+
}
154+
139155
/* Emphasis Styles */
140156
.markdown-strong {
141157
font-weight: 600;

0 commit comments

Comments
 (0)