@@ -1858,15 +1858,19 @@ interface CommitListItemProps {
18581858
18591859const CommitListItem : React . FC < CommitListItemProps > = ( { commit, highlight } ) => {
18601860 const commitHashTooltip = useTooltip ( commit . hash ) ;
1861+ const sanitizedMessage = commit . message . trimStart ( ) ;
1862+
18611863 return (
18621864 < li className = "p-3 bg-gray-50 dark:bg-gray-900/50 rounded-lg border border-gray-200 dark:border-gray-700" >
1863- < pre className = "font-sans whitespace-pre-wrap text-gray-900 dark:text-gray-100" >
1864- < HighlightedText text = { commit . message } highlight = { highlight } />
1865- </ pre >
1866- < 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" >
1867- < span > { commit . author } </ span >
1868- < span { ...commitHashTooltip } className = "font-mono" > { commit . shortHash } • { commit . date } </ span >
1869- </ div >
1865+ < div className = "font-sans text-gray-900 dark:text-gray-100" >
1866+ < span className = "block whitespace-pre-line leading-relaxed" >
1867+ < HighlightedText text = { sanitizedMessage } highlight = { highlight } />
1868+ </ span >
1869+ </ div >
1870+ < 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" >
1871+ < span > { commit . author } </ span >
1872+ < span { ...commitHashTooltip } className = "font-mono" > { commit . shortHash } • { commit . date } </ span >
1873+ </ div >
18701874 </ li >
18711875 ) ;
18721876} ;
@@ -3539,7 +3543,11 @@ const RepoEditView: React.FC<RepoEditViewProps> = ({ onSave, onCancel, repositor
35393543 < p className = "text-center text-gray-500" > { debouncedHistorySearch ? `No commits found for "${ debouncedHistorySearch } ".` : 'No commits found.' } </ p >
35403544 ) : (
35413545 < >
3542- { commits . map ( commit => < CommitListItem key = { commit . hash } commit = { commit } highlight = { debouncedHistorySearch } /> ) }
3546+ < ul className = "space-y-3 list-none p-0 m-0" >
3547+ { commits . map ( commit => (
3548+ < CommitListItem key = { commit . hash } commit = { commit } highlight = { debouncedHistorySearch } />
3549+ ) ) }
3550+ </ ul >
35433551 { hasMoreHistory && (
35443552 < div className = "text-center" >
35453553 < 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