From 3823617089f7ef411f99b40d50fb3c0dc3fbed13 Mon Sep 17 00:00:00 2001 From: Thomas Petersen Date: Wed, 19 Aug 2026 13:11:49 -0400 Subject: [PATCH] polish(desktop): detail-page layout cleanup for readme and commit views README: wider reading inset, soft-wrap reflow, scrollable code blocks (new Markdown blockCode option), header row removed. Commit detail: full-width files pane that fills the remaining viewport via a flex chain instead of a fixed min-height, author shown in header and meta, tighter title spacing, link icon inline. Assign-to-me renders as a left-aligned link in the assignees row. Signed-off-by: Thomas Petersen --- .../projects/ui/IssueAssigneesRow.tsx | 4 +- .../projects/ui/ProjectCommitDetailPanel.tsx | 167 ++++++++++-------- .../projects/ui/ProjectDetailScreen.tsx | 5 +- .../projects/ui/ProjectDetailSection.tsx | 19 +- .../ProjectPullRequestFilesChangedPanel.tsx | 14 +- .../projects/ui/ProjectReadmePanel.tsx | 6 +- .../projects/ui/ProjectWorkspaceTabs.tsx | 14 +- desktop/src/shared/ui/markdown.tsx | 16 +- desktop/src/shared/ui/markdown/types.ts | 7 + desktop/src/shared/ui/markdownUtils.ts | 1 + 10 files changed, 163 insertions(+), 90 deletions(-) diff --git a/desktop/src/features/projects/ui/IssueAssigneesRow.tsx b/desktop/src/features/projects/ui/IssueAssigneesRow.tsx index 4da5123814..7413044727 100644 --- a/desktop/src/features/projects/ui/IssueAssigneesRow.tsx +++ b/desktop/src/features/projects/ui/IssueAssigneesRow.tsx @@ -267,7 +267,9 @@ export function IssueAssigneesRow({ {canSelfAssign && viewer ? ( - {open ?
{children}
: null} + {open ? ( +
{children}
+ ) : null} ); } diff --git a/desktop/src/features/projects/ui/ProjectPullRequestFilesChangedPanel.tsx b/desktop/src/features/projects/ui/ProjectPullRequestFilesChangedPanel.tsx index 105d20f10e..cd050e2f5a 100644 --- a/desktop/src/features/projects/ui/ProjectPullRequestFilesChangedPanel.tsx +++ b/desktop/src/features/projects/ui/ProjectPullRequestFilesChangedPanel.tsx @@ -755,8 +755,10 @@ export function ProjectPullRequestFilesChangedPanel({ } export function ProjectDiffFilesPanel({ + className, error, diff, + fileTreeClassName, isLoading, embedded = false, focusedAnchor, @@ -764,6 +766,10 @@ export function ProjectDiffFilesPanel({ inlineComments, subjectLabel, }: { + /** Extra classes for the file-tree/diff grid container. */ + className?: string; + /** Overrides the file tree's default `max-h-96` cap, e.g. for full-height layouts. */ + fileTreeClassName?: string; error: unknown; diff: ProjectRepoDiff | null | undefined; isLoading: boolean; @@ -857,6 +863,7 @@ export function ProjectDiffFilesPanel({ className={cn( "grid min-h-0 overflow-hidden lg:grid-cols-[17rem_minmax(0,1fr)]", outerBorderClass, + className, )} data-project-detail-panel={embedded ? undefined : true} > @@ -876,7 +883,12 @@ export function ProjectDiffFilesPanel({ /> -