krz/orgstar

A native macOS editor for org-mode files. editor org-mode swift

Commit 91703eee0a

91703eee0ab67a7a16df3755b482ac0c3c3ffe3f

parent: f095381f67

Verified · cmc

cmc <hello@cleberg.net> · 2026-10-09 01:29 UTC

Start the truncated reader at the top left

Layout: unified · split

Sources/OrgstarMobile/ReaderScreen.swift +2
@@ -64,6 +64,8 @@ struct ReaderScreen: View {
64 .padding() 64 .padding()
65 .frame(maxWidth: truncated ? nil : .infinity, alignment: .leading) 65 .frame(maxWidth: truncated ? nil : .infinity, alignment: .leading)
66 } 66 }
67 // Narrower than the view while truncated, the text still starts at the top left.
68 .defaultScrollAnchor(truncated ? .topLeading : nil)
67 .background(theme.swiftColor("background") ?? Color(uiColor: .systemBackground)) 69 .background(theme.swiftColor("background") ?? Color(uiColor: .systemBackground))
68 .onChange(of: session.revealRequest?.id) { 70 .onChange(of: session.revealRequest?.id) {
69 guard let offset = session.revealRequest?.offset else { return } 71 guard let offset = session.revealRequest?.offset else { return }