From ce30a31bb1d9539a9991bf13de1a88317c145b36 Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Fri, 25 Jul 2025 14:11:29 -0500 Subject: [PATCH] Improve GitHistoryDialog design --- src/components/ai/GitHistoryDialog.tsx | 42 ++++++++++++-------------- 1 file changed, 19 insertions(+), 23 deletions(-) diff --git a/src/components/ai/GitHistoryDialog.tsx b/src/components/ai/GitHistoryDialog.tsx index 674ee4fd..9ca4c945 100644 --- a/src/components/ai/GitHistoryDialog.tsx +++ b/src/components/ai/GitHistoryDialog.tsx @@ -336,29 +336,15 @@ ${commitsToRevert.map(c => `- ${c.oid.substring(0, 7)}: ${c.commit.message}`).jo
-
-
-
-

- {firstLine} -

- - {commit.oid.substring(0, 7)} - -
- - {isExpanded && hasMoreLines && ( -
- {fullMessage.split('\n').slice(1).join('\n').trim()} -
- )} -
- +
+

+ {firstLine} +

{hasMoreLines && (
+ {isExpanded && hasMoreLines && ( +
+ {fullMessage.split('\n').slice(1).join('\n').trim()} +
+ )} +
{commit.commit.author.name} committed {formatRelativeTime(commit.commit.author.timestamp)}
- {index > 0 && ( // Don't show rollback for the most recent commit -
+
+ {index > 0 && ( // Don't show rollback for the most recent commit
- )} + )} + + + {commit.oid.substring(0, 7)} + +
);