@devries-cameron20 / t3code Mirror · read-only / commits / f5e505a431
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 23, 04:15 UTC

fix(mobile): Android PR filter chips no longer crowd the sheet corner (#20889)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

Nick Anisimov committed Oct 18, 2026 at 23:23 UTC f5e505a4317a5e53dbcdd9d1d5ccb3627208b403
1 file changed +8 -6
apps/mobile/src/features/pull-requests/PullRequestListFilters.tsx
+8 -6
@@ -1,6 +1,6 @@
1 import { sortProjectsByGroupOrder } from "@t3tools/client-runtime/state/project-grouping";
2 import { useMemo } from "react";
3 -import { ScrollView } from "react-native";
3 +import { Platform, ScrollView } from "react-native";
4 import type { MenuProps } from "../../components/ui/Menu.types";
5 import { ListFilterMenu } from "../workspace/ListFilterMenu";
6 import { useProjects, useThreadShells } from "../../state/entities";
@@ -24,6 +24,12 @@ const SORTS = {
24 created: "Newest created",
25 oldest: "Oldest updated",
26 } as const;
27 +// On Android the row sits under ScreenContent's 28dp corner. A 12dp inset keeps the
28 +// 16dp chip radius concentric with it (28 - 12 = 16).
29 +const ROW_STYLE =
30 + Platform.OS === "android"
31 + ? { paddingHorizontal: 12, paddingTop: 12, paddingBottom: 8, gap: 8 }
32 + : { paddingHorizontal: 16, paddingTop: 2, paddingBottom: 10, gap: 8 };
33 const id = (field: string, value: string) => JSON.stringify([field, value]);
34 function choices(field: string, options: Readonly<Record<string, string>>, selected: string) {
35 return Object.entries(options).map(([value, title]) => ({
@@ -222,11 +228,7 @@ export function PullRequestListFilters(props: {
228 ...new Set([...(author && author !== "me" ? [author] : []), ...props.authors]),
229 ].slice(0, 60);
230 return (
225 - <ScrollView
226 - horizontal
227 - showsHorizontalScrollIndicator={false}
228 - contentContainerStyle={{ paddingHorizontal: 16, paddingTop: 2, paddingBottom: 10, gap: 8 }}
229 - >
231 + <ScrollView horizontal showsHorizontalScrollIndicator={false} contentContainerStyle={ROW_STYLE}>
232 <ListFilterMenu
233 label={count ? String(count) : "Filters"}
234 icon