mirror of
https://github.com/yattee/yattee.git
synced 2024-12-13 22:00:31 +05:30
Layout fixes
This commit is contained in:
parent
5eafbb1151
commit
8978bf3f33
@ -71,6 +71,8 @@ struct OpenVideosModel {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NavigationModel.shared.presentingOpenVideos = false
|
||||||
|
|
||||||
logger.info("opening \(urls.count) urls")
|
logger.info("opening \(urls.count) urls")
|
||||||
urls.forEach { logger.info("\($0.absoluteString)") }
|
urls.forEach { logger.info("\($0.absoluteString)") }
|
||||||
|
|
||||||
|
@ -266,6 +266,8 @@ struct SettingsView_Previews: PreviewProvider {
|
|||||||
.injectFixtureEnvironmentObjects()
|
.injectFixtureEnvironmentObjects()
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
.frame(width: 600, height: 300)
|
.frame(width: 600, height: 300)
|
||||||
|
#else
|
||||||
|
.navigationViewStyle(.stack)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,9 @@ struct OpenVideosView: View {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.navigationTitle("Open Videos")
|
.navigationTitle("Open Videos")
|
||||||
|
#if os(iOS)
|
||||||
|
.navigationBarTitleDisplayMode(.inline)
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -57,11 +60,16 @@ struct OpenVideosView: View {
|
|||||||
.font(.caption2)
|
.font(.caption2)
|
||||||
.foregroundColor(.secondary)
|
.foregroundColor(.secondary)
|
||||||
|
|
||||||
Picker("Playback Mode", selection: $playbackMode) {
|
Menu {
|
||||||
ForEach(OpenVideosModel.PlaybackMode.allCases, id: \.rawValue) { mode in
|
Picker("Playback Mode", selection: $playbackMode) {
|
||||||
Text(mode.description).tag(mode)
|
ForEach(OpenVideosModel.PlaybackMode.allCases, id: \.rawValue) { mode in
|
||||||
|
Text(mode.description).tag(mode)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
} label: {
|
||||||
|
Text(playbackMode.description)
|
||||||
}
|
}
|
||||||
|
.transaction { t in t.disablesAnimations = true }
|
||||||
.labelsHidden()
|
.labelsHidden()
|
||||||
.padding(.bottom, 5)
|
.padding(.bottom, 5)
|
||||||
.frame(maxWidth: .infinity, alignment: .center)
|
.frame(maxWidth: .infinity, alignment: .center)
|
||||||
@ -128,7 +136,7 @@ struct OpenVideosView: View {
|
|||||||
} label: {
|
} label: {
|
||||||
HStack {
|
HStack {
|
||||||
Image(systemName: "network")
|
Image(systemName: "network")
|
||||||
Text("Open URLs")
|
Text("Open")
|
||||||
.fontWeight(.bold)
|
.fontWeight(.bold)
|
||||||
.padding(.vertical, 10)
|
.padding(.vertical, 10)
|
||||||
}
|
}
|
||||||
@ -154,7 +162,7 @@ struct OpenVideosView: View {
|
|||||||
} label: {
|
} label: {
|
||||||
HStack {
|
HStack {
|
||||||
Image(systemName: "doc.on.clipboard.fill")
|
Image(systemName: "doc.on.clipboard.fill")
|
||||||
Text("Clipboard")
|
Text("Paste")
|
||||||
.fontWeight(.bold)
|
.fontWeight(.bold)
|
||||||
.padding(.vertical, 10)
|
.padding(.vertical, 10)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user