fix: chord page overlapping

fixes #57, fixes #56
fix: handle trailing spaces in lecacy chord files
This commit is contained in:
2023-12-08 21:59:08 +01:00
parent 8cbdf1393f
commit 3c1a4de4a7
4 changed files with 8 additions and 9 deletions

View File

@@ -12,7 +12,10 @@ export function csvChordsToJson(csv: string): CharaChordFile {
const [input, output] = line.split(",", 2)
return [
input.split("+").map(it => KEYMAP_IDS.get(it.trim())?.code ?? 0),
output.split("").map(it => KEYMAP_IDS.get(it.trim())?.code ?? 0),
output
.trim()
.split("")
.map(it => KEYMAP_IDS.get(it)?.code ?? 0),
]
}),
}

View File

@@ -112,8 +112,7 @@
flex-direction: column;
flex-grow: 1;
align-items: center;
padding: 16px;
padding-inline: 16px;
}
h1 {

View File

@@ -116,16 +116,14 @@
}
footer {
position: absolute;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
padding: 16px;
padding: 8px;
padding-inline-end: 16px;
padding-block-start: 0;
opacity: 0.4;
}

View File

@@ -1 +0,0 @@
<h1>Layout Bootcamp</h1>