@@ -1856,15 +1856,19 @@ interface CommitListItemProps {
18561856
18571857const CommitListItem : React . FC < CommitListItemProps > = ( { commit, highlight } ) => {
18581858 const commitHashTooltip = useTooltip ( commit . hash ) ;
1859+ const sanitizedMessage = commit . message . trimStart ( ) ;
1860+
18591861 return (
18601862 < li className = "p-3 bg-gray-50 dark:bg-gray-900/50 rounded-lg border border-gray-200 dark:border-gray-700" >
1861- < pre className = "font-sans whitespace-pre-wrap text-gray-900 dark:text-gray-100" >
1862- < HighlightedText text = { commit . message } highlight = { highlight } />
1863- </ pre >
1864- < div className = "flex items-center justify-between text-xs text-gray-500 dark:text-gray-400 mt-2 pt-2 border-t border-gray-200 dark:border-gray-700" >
1865- < span > { commit . author } </ span >
1866- < span { ...commitHashTooltip } className = "font-mono" > { commit . shortHash } • { commit . date } </ span >
1867- </ div >
1863+ < div className = "font-sans text-gray-900 dark:text-gray-100" >
1864+ < span className = "block whitespace-pre-line leading-relaxed" >
1865+ < HighlightedText text = { sanitizedMessage } highlight = { highlight } />
1866+ </ span >
1867+ </ div >
1868+ < div className = "flex items-center justify-between text-xs text-gray-500 dark:text-gray-400 mt-2 pt-2 border-t border-gray-200 dark:border-gray-700" >
1869+ < span > { commit . author } </ span >
1870+ < span { ...commitHashTooltip } className = "font-mono" > { commit . shortHash } • { commit . date } </ span >
1871+ </ div >
18681872 </ li >
18691873 ) ;
18701874} ;
@@ -3483,7 +3487,11 @@ const RepoEditView: React.FC<RepoEditViewProps> = ({ onSave, onCancel, repositor
34833487 < p className = "text-center text-gray-500" > { debouncedHistorySearch ? `No commits found for "${ debouncedHistorySearch } ".` : 'No commits found.' } </ p >
34843488 ) : (
34853489 < >
3486- { commits . map ( commit => < CommitListItem key = { commit . hash } commit = { commit } highlight = { debouncedHistorySearch } /> ) }
3490+ < ul className = "space-y-3 list-none p-0 m-0" >
3491+ { commits . map ( commit => (
3492+ < CommitListItem key = { commit . hash } commit = { commit } highlight = { debouncedHistorySearch } />
3493+ ) ) }
3494+ </ ul >
34873495 { hasMoreHistory && (
34883496 < div className = "text-center" >
34893497 < button onClick = { ( ) => fetchHistory ( true ) } disabled = { isMoreHistoryLoading } className = "px-4 py-2 text-sm font-medium text-white bg-blue-600 rounded-md hover:bg-blue-700 disabled:bg-gray-500" >
0 commit comments