This repository was archived by the owner on Jul 8, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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) => {
2222
2323 if ( isObject ) {
2424 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" >
2626 < code > { input } </ code >
2727 </ pre >
2828 ) ;
@@ -117,21 +117,19 @@ export function Dashboard() {
117117 </ TableHeader >
118118 < TableBody >
119119 { filteredAlerts . map ( ( alert ) => (
120- < TableRow key = { alert . alert_id } >
120+ < TableRow key = { alert . alert_id } className = "max-h-20" >
121121 < TableCell className = "max-w-[100px] truncate" >
122122 { alert . trigger_type }
123123 </ TableCell >
124124 < 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 ?? "" ) }
128126 </ TableCell >
129127 < TableCell className = "max-w-[100px] truncate" >
130128 { alert . code_snippet ?. filepath || "N/A" }
131129 </ TableCell >
132130 < TableCell className = "w-[30%] max-w-[300px]" >
133131 { 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 " >
135133 < code > { alert . code_snippet ?. code } </ code >
136134 </ pre >
137135 ) : (
You can’t perform that action at this time.
0 commit comments