Skip to content

Commit 8d1238d

Browse files
committed
Remove limit width for basefret
1 parent 54c4c45 commit 8d1238d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Sources/Fretboard/FretView.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public struct FretView: View {
6565
Text("\(baseFret)fr")
6666
.foregroundColor(.primary)
6767
.font(.system(size: proxy.size.width/10))
68-
.frame(width: proxy.size.width/7, height: proxy.size.height/7)
68+
.frame(height: proxy.size.height/7)
6969
.offset(CGSize(width: 0, height: -(proxy.size.height/7) * 3.0 - 3))
7070
}
7171
}
@@ -137,13 +137,18 @@ struct FretView_Previews: PreviewProvider {
137137

138138
static let fAug = GuitarChord(key: .f, baseFret: 8, barres: [], frets: [-1, 1, -1, 3, 3, 2], suffix: .aug, fingers: [0, 1, 0, 3, 4, 2])
139139

140+
static let bbM9 = GuitarChord(key: .bFlat, baseFret: 11, barres: [], frets: [-1, 3, 1, 3, 3, -1], suffix: .majorNine, fingers: [0, 2, 1, 3, 4, 0])
141+
140142
static var previews: some View {
141143
Group {
142144
FretView(chord: fMajor)
143145
.frame(width: 100, height: 200)
144146

145147
FretView(chord: fAug)
146148
.frame(width: 100, height: 200)
149+
150+
FretView(chord: bbM9)
151+
.frame(width: 100, height: 200)
147152
}
148153

149154
}

0 commit comments

Comments
 (0)