Better iPad / macOS sidebar close #614

This commit is contained in:
Thomas Ricouard 2023-02-10 12:53:59 +01:00
parent 2083f72b2b
commit 06120974fa

View file

@ -152,9 +152,8 @@ private struct SideBarIcon: View {
var body: some View { var body: some View {
Image(systemName: systemIconName) Image(systemName: systemIconName)
.resizable() .font(.title2)
.aspectRatio(contentMode: .fit) .fontWeight(.medium)
.frame(width: 24, height: 24)
.foregroundColor(isSelected ? theme.tintColor : theme.labelColor) .foregroundColor(isSelected ? theme.tintColor : theme.labelColor)
.scaleEffect(isHovered ? 0.8 : 1.0) .scaleEffect(isHovered ? 0.8 : 1.0)
.onHover { isHovered in .onHover { isHovered in