diff --git a/ui/src/apps/pr-write/App.tsx b/ui/src/apps/pr-write/App.tsx index 6975434bea..6d646a7e28 100644 --- a/ui/src/apps/pr-write/App.tsx +++ b/ui/src/apps/pr-write/App.tsx @@ -52,6 +52,22 @@ interface BranchItem { protected: boolean; } +const branchMenuButtonSx = { + width: "100%", + minWidth: 0, + "& [data-component='buttonContent']": { + minWidth: 0, + overflow: "hidden", + flex: "1 1 auto", + }, + "& [data-component='text']": { + minWidth: 0, + overflow: "hidden", + textOverflow: "ellipsis", + whiteSpace: "nowrap", + }, +} as const; + type ReviewerItem = { kind: "user" | "team"; id: string; text: string; avatar?: string; org?: string }; function reviewerFromValue(value: string): ReviewerItem { @@ -570,7 +586,11 @@ function CreatePRApp() { base - span": { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } }}> + {baseBranch || "Select base"} @@ -611,7 +631,11 @@ function CreatePRApp() { compare - span": { overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" } }}> + {headBranch || "Select head"}