Skip to content
TypeScript

fix(web): PR file headers keep the file name in narrow panels (#15562)

oliver2b7fa212a89e
diff --git a/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx b/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
index 9af92ee96a8..caadd569b9c 100644
--- a/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
+++ b/apps/web/src/components/pullRequest/PullRequestCodeTab.tsx
@@ -858,7 +858,7 @@ function PullRequestCodeTab({
</TooltipPopup>
</Tooltip>
) : (
- "Viewed"
+ <span className="@max-xs:hidden">Viewed</span>
)}
</label>
</span>
@@ -1503,7 +1503,7 @@ function PullRequestCodeTab({
// diff crosses the overflow boundary. The viewer is itself focusable for keyboard
// interaction, but its native host outline clips and competes with the focus
// indicators on its actual controls.
- className="h-full overflow-auto [scrollbar-gutter:stable]"
+ className="@container h-full overflow-auto [scrollbar-gutter:stable]"
viewerRef={setViewer}
items={items}
selectedLines={selectedLines}