Skip to content

Commit ee6e26b

Browse files
committed
fix env prod
1 parent 8e6f877 commit ee6e26b

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

.env.production

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VITE_BASE_API_URL="https://localhost:6001/api"
1+
VITE_BASE_API_URL="http://localhost:8989"

src/components/Dashboard.tsx

+4-6
Original file line numberDiff line numberDiff 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
) : (

0 commit comments

Comments
 (0)