Skip to content

Commit 7d1e9cb

Browse files
ikun97zhongxiao-myshell
authored andcommitted
feat: ui design (#361)
1 parent 574dbac commit 7d1e9cb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

web/packages/form-engine/src/index.tsx

+6-2
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,18 @@ const FormEngine = forwardRef<FormRef, IFormEngineProps>((props, ref) => {
9595
}, []);
9696

9797
const fallbackRender = (props: FallbackProps) => (
98-
<div>
98+
<div className="p-3">
9999
<Heading size="h2" color="critical">
100100
Caught an error
101101
</Heading>
102102
<Text size="sm" color="subtler">
103103
{props.error.toString()}
104104
</Text>
105-
<pre className="bg-normal-primary-default p-2 rounded-xl">
105+
<pre
106+
className="bg-normal-primary-default p-2 rounded-xl overflow-scroll"
107+
onWheel={e => e.stopPropagation()}
108+
onWheelCapture={e => e.stopPropagation()}
109+
onMouseDownCapture={e => e.stopPropagation()}>
106110
{JSON.stringify(values, null, 2)}
107111
</pre>
108112
</div>

0 commit comments

Comments
 (0)