The lyrics text node after the block level chord row forms its own row by
itself, so the wrapper span was only extra markup and an extra CSS rule.
// The chord span is emitted even when empty, so that lyrics before the first
// chord of a line still end up in the lyrics row; see chordpro.css.
-const segment = (chord, text) => html`<span class="seg"><span class="chord">${chord}</span><span class="text">${text}</span></span>`;
+const segment = (chord, text) => html`<span class="seg"><span class="chord">${chord}</span>${text}</span>`;
const directive_handlers = {
title: value => {
vertical-align: top;
}
-.verse.chords .chord,
-.verse.chords .text {
- display: block;
-}
-
.verse.chords .chord {
+ display: block;
/* chord names have no descenders, so keep the row tight to the lyrics */
line-height: 1;
/* keep lyrics in the bottom row when there is no chord above them */