Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

style: compact system information fields

tianma-if215a45098b97
diff --git a/apps/mobile/src/screens/WorkspaceScreen.tsx b/apps/mobile/src/screens/WorkspaceScreen.tsx
index 85fd5ce7..c6fdb79a 100644
--- a/apps/mobile/src/screens/WorkspaceScreen.tsx
+++ b/apps/mobile/src/screens/WorkspaceScreen.tsx
@@ -3102,9 +3102,30 @@ const SystemInfoCard = ({ embedded = false }: { embedded?: boolean }) => {
<ActionButton label={copied ? "已复制" : "复制信息"} onPress={copySystemInfo}>
{copied ? <ShieldCheck color="#047857" size={16} /> : <Copy color="#0f172a" size={16} />}
</ActionButton>
- {infoItems.map((item) => (
- <PanelRow key={item.label} label={item.label} value={item.value} />
- ))}
+ <View style={styles.systemInfoRows}>
+ {Array.from({ length: Math.ceil(infoItems.length / 3) }, (_, rowIndex) => {
+ const rowItems = infoItems.slice(rowIndex * 3, rowIndex * 3 + 3);
+
+ return (
+ <View
+ key={`system-info-row-${rowIndex}`}
+ style={[styles.systemInfoRow, rowIndex === Math.ceil(infoItems.length / 3) - 1 && styles.systemInfoRowLast]}
+ >
+ {rowItems.map((item, itemIndex) => (
+ <View
+ key={item.label}
+ style={[styles.systemInfoCell, itemIndex < rowItems.length - 1 && styles.systemInfoCellDivider]}
+ >
+ <Text numberOfLines={1} style={styles.panelLabel}>{item.label}</Text>
+ <Text numberOfLines={1} selectable style={styles.systemInfoListValue}>
+ {item.value}
+ </Text>
+ </View>
+ ))}
+ </View>
+ );
+ })}
+ </View>
</View>
) : null}
</View>
@@ -7127,6 +7148,35 @@ const baseWorkspaceStyles = StyleSheet.create({
gap: 6,
padding: 14,
},
+ systemInfoRows: {
+ borderTopColor: "#e2e8f0",
+ borderTopWidth: 1,
+ },
+ systemInfoRow: {
+ borderBottomColor: "#e2e8f0",
+ borderBottomWidth: 1,
+ flexDirection: "row",
+ },
+ systemInfoRowLast: {
+ borderBottomWidth: 0,
+ },
+ systemInfoCell: {
+ flex: 1,
+ gap: 3,
+ minWidth: 0,
+ paddingHorizontal: 8,
+ paddingVertical: 9,
+ },
+ systemInfoCellDivider: {
+ borderRightColor: "#e2e8f0",
+ borderRightWidth: 1,
+ },
+ systemInfoListValue: {
+ color: "#0f172a",
+ fontFamily: "monospace",
+ fontSize: 12,
+ fontWeight: "700",
+ },
panelLinkRow: {
alignItems: "center",
flexDirection: "row",
diff --git a/apps/web/src/components/settings/SystemInfoCard.tsx b/apps/web/src/components/settings/SystemInfoCard.tsx
index 30d07099..29a7e4d1 100644
--- a/apps/web/src/components/settings/SystemInfoCard.tsx
+++ b/apps/web/src/components/settings/SystemInfoCard.tsx
@@ -140,16 +140,16 @@ export const SystemInfoCard = () => {
{copied ? t("common.copied") : t("systemInfo.copy")}
</Button>
</div>
- <div className="grid gap-2 sm:grid-cols-2">
+ <dl className="grid border-y border-slate-200 sm:grid-cols-3">
{infoItems.map((item) => (
- <div key={item.label} className="min-w-0 rounded-lg border border-slate-200 bg-white px-3 py-2.5">
- <div className="text-[11px] font-semibold uppercase text-slate-400">{item.label}</div>
- <div className="mt-1 truncate font-mono text-xs font-semibold text-slate-800" title={item.value}>
+ <div key={item.label} className="min-w-0 border-b border-slate-200 px-2 py-2.5 sm:px-3">
+ <dt className="truncate text-[11px] font-semibold uppercase text-slate-400">{item.label}</dt>
+ <dd className="mt-0.5 truncate font-mono text-xs font-semibold text-slate-800" title={item.value}>
{item.value}
- </div>
+ </dd>
</div>
))}
- </div>
+ </dl>
</CardContent>
</CollapsibleContent>
</Card>