Skip to content

Commit 426f976

Browse files
only21milcodex
andcommitted
chore(mobile): format arrangement sizing changes
Co-Authored-By: GPT-6.1 Sol <[email protected]>
1 parent 4ee44a1 commit 426f976

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

‎apps/mobile/src/features/threads/ThreadArrangementSheet.tsx‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,9 @@ export function ThreadArrangementSheet(props: { onClose: () => void }) {
262262
setPreview(null);
263263
}
264264
const orderVersion = rows
265-
.map((row) => `${row.key}:${row.height}:${row.thread?.pinOrderKey}:${row.thread?.activeOrderKey}`)
265+
.map(
266+
(row) => `${row.key}:${row.height}:${row.thread?.pinOrderKey}:${row.thread?.activeOrderKey}`,
267+
)
266268
.join("|");
267269
useEffect(() => {
268270
stop();

‎apps/mobile/src/lib/layout.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ export function deriveThreadArrangementSizing(input: {
2525
readonly fontScale: number;
2626
}) {
2727
const bodyLineHeight = scaledTypographyLineHeight(MOBILE_TYPOGRAPHY.body, input.baseFontSize);
28-
const headerLineHeight = scaledTypographyLineHeight(MOBILE_TYPOGRAPHY.footnote, input.baseFontSize);
28+
const headerLineHeight = scaledTypographyLineHeight(
29+
MOBILE_TYPOGRAPHY.footnote,
30+
input.baseFontSize,
31+
);
2932
return {
3033
rowHeight: Math.max(56, Math.ceil(2 * bodyLineHeight * input.fontScale) + 10),
3134
headerHeight: Math.max(48, Math.ceil(headerLineHeight * input.fontScale) + 24),

0 commit comments

Comments
 (0)