Skip to content
Source
Sign inSign up
pingdotgg/t3code

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 intomain fromrefs/pull/6647/headopened View on GitHub

Showing 1 changed file with 99 additions and 46 deletions.

x
0 of 1 viewed, 1 left
99 additions and 46 deletionsapps/mobile/src/features/files/SourceFileSurface.tsxModified
View file
@@ -4,6 +4,7 @@
import { memo, useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
FlatList,
+ RefreshControl,
ScrollView,
Text as NativeText,
useColorScheme,
@@ -51,7 +52,7 @@
}) {
return (
<View
- className={cn("flex-row", props.highlighted && "bg-primary/10")}
+ className={cn("flex-row items-start", props.highlighted && "bg-primary/10")}
style={{ minHeight: props.codeSurface.rowHeight }}
<NativeText
@@ -65,51 +66,55 @@
{props.index + 1}
</NativeText>
- <NativeText
- selectable
- numberOfLines={props.wordBreak ? undefined : 1}
- className="flex-1 font-normal text-foreground"
- style={{
- fontFamily: REVIEW_MONO_FONT_FAMILY,
- fontSize: props.codeSurface.fontSize,