mirror of
https://github.com/yattee/yattee.git
synced 2026-05-14 03:15:03 +00:00
Polish Log Viewer for macOS
Convert detail and filter sheets to shared helpers, add inline Filter / Export / Clear buttons next to the search bar (toolbar items weren't surfacing in the settings detail pane), inline the Reset Filters button at the bottom of the filter sheet, use a 'Close' text button, and trim the macOS Share Sheet to just the scrollable log with a Copy button.
This commit is contained in:
@@ -22,16 +22,14 @@ struct ShareSheet: View {
|
||||
let items: [Any]
|
||||
|
||||
var body: some View {
|
||||
VStack {
|
||||
Text(String(localized: "settings.advanced.logs.export.instructions"))
|
||||
.padding()
|
||||
|
||||
VStack(spacing: 12) {
|
||||
if let text = items.first as? String {
|
||||
ScrollView {
|
||||
Text(text)
|
||||
.font(.caption)
|
||||
.fontDesign(.monospaced)
|
||||
.textSelection(.enabled)
|
||||
.frame(maxWidth: .infinity, alignment: .leading)
|
||||
.padding()
|
||||
}
|
||||
.frame(maxHeight: 400)
|
||||
@@ -43,9 +41,10 @@ struct ShareSheet: View {
|
||||
NSPasteboard.general.setString(text, forType: .string)
|
||||
}
|
||||
}
|
||||
.padding()
|
||||
.keyboardShortcut(.defaultAction)
|
||||
}
|
||||
.frame(minWidth: 400, minHeight: 300)
|
||||
.padding()
|
||||
.frame(minWidth: 420, minHeight: 320)
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user