Commit 91703eee0a
Verified · cmc
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 } |