From 1aa49346cbff0a3f82a2667dadf00d8f978c446f Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 7 Apr 2023 22:13:55 +0800 Subject: [PATCH] Better spacing on top nav bar reader buttons --- .../Views/WebReader/WebReaderContainer.swift | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift index 262c64bb1..3751f01c1 100644 --- a/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift +++ b/apple/OmnivoreKit/Sources/App/Views/WebReader/WebReaderContainer.swift @@ -143,7 +143,7 @@ struct WebReaderContainerView: View { textToSpeechButtonImage } ) - .padding(.horizontal) + .padding(.horizontal, 5) .scaleEffect(navBarVisibilityRatio)) } } @@ -270,8 +270,21 @@ struct WebReaderContainerView: View { ) .scaleEffect(navBarVisibilityRatio) Spacer() + #endif + + Button( + action: { showNotebookView = true }, + label: { + Image("notebook", bundle: Bundle(url: ViewsPackage.bundleURL)) + } + ) + .padding(.horizontal, 5) + .scaleEffect(navBarVisibilityRatio) + + #if os(iOS) audioNavbarItem #endif + Button( action: { showPreferencesPopover.toggle() }, label: { @@ -279,15 +292,7 @@ struct WebReaderContainerView: View { .font(.appNavbarIcon) } ) - .padding(.horizontal) - .scaleEffect(navBarVisibilityRatio) - Button( - action: { showNotebookView = true }, - label: { - Image("notebook", bundle: Bundle(url: ViewsPackage.bundleURL)) - } - ) - .padding(.horizontal) + .padding(.horizontal, 5) .scaleEffect(navBarVisibilityRatio) #if os(macOS) Spacer()