Skip to content

Commit a091f39

Browse files
authored
pen icon for lyrics row (#4414)
1 parent f0d652a commit a091f39

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

js/widgets/phrasemaker.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,20 @@ class PhraseMaker {
923923
lyricsRow.setAttribute("id", "lyricRow");
924924
lyricsRow.style.position = "sticky";
925925

926+
// Label Icon
927+
cell = lyricsRow.insertCell();
928+
cell.setAttribute("colspan", "1");
929+
cell.className = "headcol";
930+
cell.style.position = "sticky";
931+
cell.style.left = "1.2px";
932+
cell.style.zIndex = "1";
933+
cell.style.backgroundColor = platformColor.lyricsLabelBackground;
934+
cell.style.textAlign = "center";
935+
cell.innerHTML = `<img src="images/pen.svg" height="${iconSize}" width="${iconSize}" vertical-align="middle">`;
936+
926937
// Label Cell (Fixed like "note value")
927938
cell = lyricsRow.insertCell();
928-
cell.setAttribute("colspan", "2");
939+
cell.setAttribute("colspan", "1");
929940
cell.className = "headcol";
930941
cell.style.position = "sticky";
931942
cell.style.left = "1.2px";

0 commit comments

Comments
 (0)