Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(reviews): keep the phone PR top bar below the status bar (#8775)

teoa49bd3c1b6ce
diff --git a/apps/web/src/features/block-pr/views/PrDetail.tsx b/apps/web/src/features/block-pr/views/PrDetail.tsx
index 749a54e3ad..a22aa4958c 100644
--- a/apps/web/src/features/block-pr/views/PrDetail.tsx
+++ b/apps/web/src/features/block-pr/views/PrDetail.tsx
@@ -161,7 +161,7 @@ export function PrDetailBody(props: PrDetailBodyProps) {
/** Native hosts place this content below their header inside `PrChangesProvider`. */
export function PrDetailContent(props: PrDetailBodyProps) {
return (
- <div class="relative min-h-0 min-w-0 flex-1">
+ <div class="relative min-h-0 min-w-0 flex-1 touch:[--mobile-content-inset-top:0px]">
<Suspense
fallback={
<Scroll class="size-full min-h-0">
@@ -253,7 +253,7 @@ export function StandalonePrDetail(props: { foreignEntityId: string }) {
>
<ChangesSplit>
<div class="flex size-full min-h-0 min-w-0 flex-col overflow-hidden @container">
- <ViewShell.TopBar class="touch:flex">
+ <ViewShell.TopBar class="touch:flex touch:h-auto touch:min-h-12 touch:pt-[calc(var(--mobile-content-inset-top,var(--safe-top,0px))+0.75rem)]">
<SplitPanel.CloseButton class="hidden shrink-0 touch:flex" />
<Show when={detail.data()?.pullRequest.status}>
{(status) => <PrStatusIcon status={status()} />}
diff --git a/apps/web/src/features/reviews-view/components/ReviewsPrDetail.tsx b/apps/web/src/features/reviews-view/components/ReviewsPrDetail.tsx
index ba92740912..df9b61fbc0 100644
--- a/apps/web/src/features/reviews-view/components/ReviewsPrDetail.tsx
+++ b/apps/web/src/features/reviews-view/components/ReviewsPrDetail.tsx
@@ -96,7 +96,7 @@ export function ReviewsPrDetail(props: { foreignEntityId: string }) {
/>
<ChangesSplit>
<div class="flex size-full min-h-0 min-w-0 flex-col overflow-hidden @container">
- <ViewShell.TopBar class="touch:flex">
+ <ViewShell.TopBar class="touch:flex touch:h-auto touch:min-h-12 touch:pt-[calc(var(--mobile-content-inset-top,var(--safe-top,0px))+0.75rem)]">
<SplitPanel.CloseButton class="hidden shrink-0 touch:flex" />
<ViewBreadcrumbs.Outlet aria-label="Pull request location" />
<PrDetailActions detail={detail.data()} />