diff --git a/resources/js/components/commit-card.tsx b/resources/js/components/commit-card.tsx index f584444ee..80b7ae126 100644 --- a/resources/js/components/commit-card.tsx +++ b/resources/js/components/commit-card.tsx @@ -16,6 +16,7 @@ import { ShowThreadLink, ThreadActions, ThreadReplies, + ThreadReplyComposer, useThread, } from '@/components/commit-thread'; import { useCommitTranslation } from '@/components/commit-translation'; @@ -272,6 +273,7 @@ export function CommitCard({ lane={laneColor(commit.user.lane)} previousLane={previousLane} endsWithDot={endsWithDot} + endsOnActions nodePosition={railNodePosition} hasTail={hasRailTail && railNodePosition !== 'bottom'} hasReplyTail={ @@ -324,10 +326,7 @@ export function CommitCard({
)} +
+ +
+ {/* What opens below the actions row gets a row of its own, so the rail's row, and its end dot, end on the actions. */} + + +
+ - {actions} + {actions} - {deletion === 'deleting' && ( -

- rm {hash} → /dev/null -

- )} + {deletion === 'deleting' && ( +

+ rm {hash} → /dev/null +

+ )} - {deletion === 'confirming' && ( -
{ - if (event.key === 'Escape') { - cancelDeletion(); - } - }} - className="mt-3 flex min-h-12 flex-wrap items-center gap-x-3 gap-y-2 rounded-md bg-destructive/8 px-3 py-2 text-sm" + {deletion === 'confirming' && ( +
{ + if (event.key === 'Escape') { + cancelDeletion(); + } + }} + className="mt-3 flex min-h-12 flex-wrap items-center gap-x-3 gap-y-2 rounded-md bg-destructive/8 px-3 py-2 text-sm" + > + + Delete this commit? You can undo for 30 + seconds. + + - -
- )} -
+ Cancel + + +
+ )}
{commit.replies_count !== undefined && ( diff --git a/resources/js/components/commit-report-button.tsx b/resources/js/components/commit-report-button.tsx index e2567a628..4068fb4b6 100644 --- a/resources/js/components/commit-report-button.tsx +++ b/resources/js/components/commit-report-button.tsx @@ -54,7 +54,7 @@ export function CommitReportButton({ commit }: { commit: Commit }) {