fix(mobile): wrap Android source files when Word break is on #6647
Closedsiure(GitHub profile, opens in a new tab)wants to merge 5 commits into
main fromrefs/pull/6647/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
- apps/mobile/src/features/files/SourceFileSurface.tsx line 339Resolvedby macroscopeapp[bot](GitHub profile, opens in a new tab)@@ -283,4 +287,5 @@283287284288 export function SourceFileSurface(props: SourceFileSurfaceProps) {285289 const NativeView = resolveNativeReviewDiffView();286- return NativeView ? (290+ const { codeWordBreak } = useAppearanceCodeSurface();291+ return NativeView && !codeWordBreak ? (
github-actions[bot](GitHub profile, opens in a new tab) removed labelssize:S
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:M
- apps/mobile/src/features/files/SourceFileSurface.tsx line 237Resolvedby cursor[bot](GitHub profile, opens in a new tab)@@ -213,6 +218,19 @@213218 }214219215220 function JavaScriptSourceFileSurface(props: SourceFileSurfaceProps) {221+ const { onRefresh } = props;216222 const { codeSurface, codeWordBreak } = useAppearanceCodeSurface();217223 const { lines, status, targetIndex, tokens } = useSourceFileModel(props);218224 const listRef = useRef<FlatList<string>>(null);225+ const [isPullRefreshing, setIsPullRefreshing] = useState(false);226+ const handlePullToRefresh = useCallback(async () => {227+ if (!onRefresh) {228+ return;229+ }230+ setIsPullRefreshing(true);231+ try {232+ await onRefresh();233+ } finally {234+ setIsPullRefreshing(false);235+ }236+ }, [onRefresh]);
juliusmarminge closed this
Sign in to join this conversation.


Important
Review skipped#
Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID:
0e3237df-ff66-48ed-898f-300d425d9e93You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
❤️ Share