Restore Markdown preview header controls on iPhone

This commit is contained in:
h3p 2026-04-16 12:49:56 +02:00
parent 3e0054a372
commit 369e210249
No known key found for this signature in database

View file

@ -4927,6 +4927,14 @@ struct ContentView: View {
@ViewBuilder
private var markdownPreviewPane: some View {
VStack(alignment: .leading, spacing: 0) {
#if os(iOS)
if UIDevice.current.userInterfaceIdiom == .phone {
markdownPreviewHeader
.padding(.horizontal, 12)
.padding(.vertical, 10)
.background(editorSurfaceBackgroundStyle)
}
#endif
MarkdownPreviewWebView(
html: markdownPreviewHTML(
from: currentContent,