Skip to content

Commit 6841c49

Browse files
authored
add double tap to zoom on window and fix spaces list icon size (#131)
1 parent 0f1a3f6 commit 6841c49

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Nook/Components/Sidebar/NavButtons/NavButtonsView.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ struct NavButtonsView: View {
121121
}
122122
}
123123
}
124+
.frame(maxWidth: .infinity)
125+
.contentShape(Rectangle())
126+
.onTapGesture(count: 2) {
127+
if let window = NSApp.keyWindow {
128+
window.performZoom(nil)
129+
}
130+
}
124131
.onAppear {
125132
tabWrapper.setContext(browserManager: browserManager, windowState: windowState)
126133
updateCurrentTab()

Nook/Components/Sidebar/SpaceSection/SpacesList/SpacesListItem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ struct SpacesListItem: View {
3838
// Fixed inner content size to avoid glyph cropping
3939
Text(space.icon)
4040
.font(.system(size: 14))
41-
.frame(width: 16, height: 16)
41+
.frame(width: 20, height: 20)
4242
} else {
4343
Image(systemName: space.icon)
4444
.font(.system(size: 14))

0 commit comments

Comments
 (0)