Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(mobile): keep version update action compact below details
zqchris114d13552985
diff --git a/apps/mobile/app/settings.tsx b/apps/mobile/app/settings.tsxindex 83c9d85f79..0c3be153c4 100644--- a/apps/mobile/app/settings.tsx+++ b/apps/mobile/app/settings.tsx@@ -837,7 +837,10 @@ export default function SettingsScreen() {testID: 'settings.checkUpdateButton',tone: 'secondary',}}+ density="compact"+ numberOfLines={0}style={styles.versionButton}+ textStyle={styles.versionButtonText}/>) : null}</View>,@@ -1286,14 +1289,14 @@ const makeStyles = (colors: ThemeColors) => StyleSheet.create({localLogOptions: { minWidth: 44, minHeight: 44, alignItems: 'center', justifyContent: 'center' },// —— 版本行 ——versionRow: {- alignItems: 'center',- flexDirection: 'row',+ alignItems: 'stretch',+ flexDirection: 'column',gap: spacing.md,minHeight: 60,paddingHorizontal: spacing.lg,paddingVertical: spacing.md,},- versionTexts: { flex: 1, gap: spacing.xs, minWidth: 0 },+ versionTexts: { gap: spacing.xs, minWidth: 0 },versionValueRow: { alignItems: 'center', flexDirection: 'row', flexWrap: 'wrap', gap: spacing.sm },versionLabel: { color: colors.textPrimary, flexShrink: 1, fontSize: typeScale.body, fontWeight: fontWeight.medium, lineHeight: lineHeight.body },versionDetail: { color: colors.textSecondary, fontSize: typeScale.footnote, fontWeight: fontWeight.regular, lineHeight: lineHeight.caption },@@ -1309,7 +1312,8 @@ const makeStyles = (colors: ThemeColors) => StyleSheet.create({lineHeight: lineHeight.micro,fontWeight: fontWeight.semibold,},- versionButton: { flexShrink: 0 },+ versionButton: { alignSelf: 'flex-start', flexShrink: 0, maxWidth: '100%', paddingVertical: spacing.xs },+ versionButtonText: { textAlign: 'center' },// —— 可复制行 ——copyRow: {alignItems: 'center',diff --git a/apps/mobile/src/components/MobilePrimitives.tsx b/apps/mobile/src/components/MobilePrimitives.tsxindex 7f7ed1ec37..aea106f764 100644--- a/apps/mobile/src/components/MobilePrimitives.tsx+++ b/apps/mobile/src/components/MobilePrimitives.tsx@@ -622,6 +622,7 @@ export function MainWindowActionButton({density = 'default',grow = false,hitSlop,+ numberOfLines = 1,style,textStyle,buttonRef,@@ -631,6 +632,8 @@ export function MainWindowActionButton({grow?: boolean;/** Compact buttons (38pt) inside content rows extend their touch target to 44pt this way. */hitSlop?: PressableProps['hitSlop'];+ /** Set to 0 for actions that must wrap within their available width. */+ numberOfLines?: number;style?: StyleProp<ViewStyle>;textStyle?: StyleProp<TextStyle>;buttonRef?: Ref<View>;@@ -672,7 +675,7 @@ export function MainWindowActionButton({<ActivityIndicator color={tone === 'danger-solid' ? colors.sharedTaskConfirmForeground : tone === 'primary' ? colors.ctaText : colors.textSecondary} size="small" />) : (<Text- numberOfLines={1}+ numberOfLines={numberOfLines}style={[styles.mainActionButtonText,compact && styles.mainActionButtonTextCompact,