@@ -24,6 +24,7 @@ import { cn } from "~/utils/cn";
2424import { getLevelColor } from "~/utils/logUtils" ;
2525import { v3RunSpanPath } from "~/utils/pathBuilder" ;
2626import { LogLevel } from "./LogLevel" ;
27+ import { ExitIcon } from "~/assets/icons/ExitIcon" ;
2728type LogDetailViewProps = {
2829 logId : string ;
2930 // If we have the log entry from the list, we can display it immediately
@@ -113,11 +114,16 @@ export function LogDetailView({ logId, initialLog, onClose, searchTerm }: LogDet
113114 if ( ! log ) {
114115 return (
115116 < div className = "flex h-full flex-col" >
116- < div className = "flex items-center justify-between border-b border-grid-dimmed p-4 " >
117+ < div className = "flex items-center justify-between border-b border-grid-dimmed py-2 pl-3 pr-2 " >
117118 < Header2 > Log Details</ Header2 >
118- < Button variant = "minimal/small" onClick = { onClose } shortcut = { { key : "esc" } } >
119- < XMarkIcon className = "size-5" />
120- </ Button >
119+ < Button
120+ onClick = { onClose }
121+ variant = "minimal/small"
122+ TrailingIcon = { ExitIcon }
123+ shortcut = { { key : "esc" } }
124+ shortcutPosition = "before-trailing-icon"
125+ className = "pl-1"
126+ />
121127 </ div >
122128 < div className = "flex flex-1 items-center justify-center" >
123129 < Paragraph className = "text-text-dimmed" > { error ?? "Log not found" } </ Paragraph >
@@ -129,11 +135,16 @@ export function LogDetailView({ logId, initialLog, onClose, searchTerm }: LogDet
129135 return (
130136 < div className = "grid h-full grid-rows-[auto_1fr] overflow-hidden" >
131137 { /* Header */ }
132- < div className = "flex items-center justify-between overflow-hidden border-b border-grid-dimmed px-3 py -2" >
138+ < div className = "flex items-center justify-between overflow-hidden border-b border-grid-dimmed py-2 pl-3 pr -2" >
133139 < Header2 className = "truncate" > { getDisplayMessage ( log ) } </ Header2 >
134- < Button variant = "minimal/small" onClick = { onClose } shortcut = { { key : "esc" } } >
135- < XMarkIcon className = "size-5" />
136- </ Button >
140+ < Button
141+ onClick = { onClose }
142+ variant = "minimal/small"
143+ TrailingIcon = { ExitIcon }
144+ shortcut = { { key : "esc" } }
145+ shortcutPosition = "before-trailing-icon"
146+ className = "pl-1"
147+ />
137148 </ div >
138149 < div className = "overflow-y-auto px-3 py-3 scrollbar-thin scrollbar-track-transparent scrollbar-thumb-charcoal-600" >
139150 < DetailsTab log = { log } runPath = { runPath } runStatus = { runStatus } searchTerm = { searchTerm } />
0 commit comments