← banjotuna

Fix 5th fret line - extend to left edge instead of right

bc51e6c8f4a3c5eb99981fb258478084a98d7cfb · Claude · Feb 2, 2026 06:56

The 5th fret line now extends to the left edge of the diagram
(where the 5th string starts) instead of the right edge.

https://claude.ai/code/session_01VSHtwaMJKL1ZgH33JDcwbY

+3 −4 · 1 file changed

  • index.html +3 −4
diff --git a/index.html b/index.html
index 763fe42..7d831be 100644
--- a/index.html
+++ b/index.html
@@ -2420,11 +2420,10 @@
 
                 // Extend line for marker frets
                 if (markerFrets.includes(fret)) {
+                    lineEndX += 20;
                     if (fret === 5) {
-                        // 5th fret extends all the way to the right edge
-                        lineEndX = svgWidth - 10;
-                    } else {
-                        lineEndX += 20;
+                        // 5th fret extends to the left edge (where 5th string starts)
+                        lineStartX = 10;
                     }
                 }