File tree 2 files changed +5
-7
lines changed
2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- VITE_BASE_API_URL = " https ://localhost:6001/api "
1
+ VITE_BASE_API_URL = " http ://localhost:8989 "
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ const wrapObjectOutput = (input: string) => {
22
22
23
23
if ( isObject ) {
24
24
return (
25
- < pre className = "w-full h-40 overflow-auto whitespace-pre-wrap bg-gray-100 p-2" >
25
+ < pre className = "max-h-40 h-40 overflow-y -auto whitespace-pre-wrap bg-gray-100 p-2" >
26
26
< code > { input } </ code >
27
27
</ pre >
28
28
) ;
@@ -117,21 +117,19 @@ export function Dashboard() {
117
117
</ TableHeader >
118
118
< TableBody >
119
119
{ filteredAlerts . map ( ( alert ) => (
120
- < TableRow key = { alert . alert_id } >
120
+ < TableRow key = { alert . alert_id } className = "max-h-20" >
121
121
< TableCell className = "max-w-[100px] truncate" >
122
122
{ alert . trigger_type }
123
123
</ TableCell >
124
124
< TableCell className = "w-[30%] max-w-[300px]" >
125
- < div className = "max-h-40 p-4 rounded overflow-y-auto whitespace-pre-wrap" >
126
- { wrapObjectOutput ( alert . trigger_string ?? "" ) }
127
- </ div >
125
+ { wrapObjectOutput ( alert . trigger_string ?? "" ) }
128
126
</ TableCell >
129
127
< TableCell className = "max-w-[100px] truncate" >
130
128
{ alert . code_snippet ?. filepath || "N/A" }
131
129
</ TableCell >
132
130
< TableCell className = "w-[30%] max-w-[300px]" >
133
131
{ alert . code_snippet ?. code ? (
134
- < pre className = "w-full h-40 overflow-auto whitespace-pre-wrap bg-gray-100 p-2" >
132
+ < pre className = "max- h-40 overflow-y- auto bg-gray-100 p-2 whitespace-pre-wrap " >
135
133
< code > { alert . code_snippet ?. code } </ code >
136
134
</ pre >
137
135
) : (
You can’t perform that action at this time.
0 commit comments