Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(mobile): 修复安卓插件提示按钮挤压换行

nana5ebc515a4c00
diff --git a/apps/mobile/src/plugins/PluginNotice.tsx b/apps/mobile/src/plugins/PluginNotice.tsx
index 6ba87ac5d7..ac3a8aae60 100644
--- a/apps/mobile/src/plugins/PluginNotice.tsx
+++ b/apps/mobile/src/plugins/PluginNotice.tsx
@@ -41,7 +41,7 @@ export function PluginNotice({
const renderActions = () => (
<>
{actions?.length ? (
- <View style={styles.actions}>
+ <View style={[styles.actions, actions.length === 1 && styles.inlineActions]}>
{actions.map((action) => (
<Pressable
key={action.label}
@@ -101,11 +101,12 @@ const makeStyles = (c: ThemeColors) =>
color: c.textSecondary,
},
actions: { flexDirection: "row", flexWrap: "wrap", gap: spacing.sm },
+ inlineActions: { maxWidth: "48%", flexShrink: 0 },
button: {
minHeight: 44,
justifyContent: "center",
paddingHorizontal: spacing.sm,
- maxWidth: "48%",
+ maxWidth: "100%",
},
action: {
fontSize: typeScale.bodySmall,