mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-06-20 06:35:22 +02:00
fix: prevent request path truncation in request logs
The RequestPath in the request log table was truncated to 82 characters with an ellipsis when it exceeded 100 characters, hiding part of the route. Show the full path and let it wrap with flex-wrap and break-all. Fixes #4642
This commit is contained in:
@@ -69,14 +69,12 @@ export const columns: ColumnDef<LogEntry>[] = [
|
||||
const log = row.original;
|
||||
return (
|
||||
<div className="flex flex-col gap-2">
|
||||
<div className="flex items-center flex-row gap-3 ">
|
||||
<div className="flex items-center flex-row flex-wrap gap-3 ">
|
||||
{log.RequestMethod}{" "}
|
||||
<div className="inline-flex items-center gap-2 bg-muted px-1.5 py-1 rounded-lg">
|
||||
<span>{log.RequestAddr}</span>
|
||||
</div>
|
||||
{log.RequestPath.length > 100
|
||||
? `${log.RequestPath.slice(0, 82)}...`
|
||||
: log.RequestPath}
|
||||
<span className="break-all">{log.RequestPath}</span>
|
||||
</div>
|
||||
<div className="flex flex-row gap-3 w-full">
|
||||
<Badge
|
||||
|
||||
Reference in New Issue
Block a user