mirror of
https://github.com/CharaChorder/DeviceManager.git
synced 2026-01-08 11:02:50 +00:00
fix: chord page overlapping
fixes #57, fixes #56 fix: handle trailing spaces in lecacy chord files
This commit is contained in:
@@ -12,7 +12,10 @@ export function csvChordsToJson(csv: string): CharaChordFile {
|
|||||||
const [input, output] = line.split(",", 2)
|
const [input, output] = line.split(",", 2)
|
||||||
return [
|
return [
|
||||||
input.split("+").map(it => KEYMAP_IDS.get(it.trim())?.code ?? 0),
|
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),
|
||||||
]
|
]
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,8 +112,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
padding-inline: 16px;
|
||||||
padding: 16px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
|
|||||||
@@ -116,16 +116,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
position: absolute;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 16px;
|
padding: 8px;
|
||||||
|
padding-inline-end: 16px;
|
||||||
|
padding-block-start: 0;
|
||||||
|
|
||||||
opacity: 0.4;
|
opacity: 0.4;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
<h1>Layout Bootcamp</h1>
|
|
||||||
Reference in New Issue
Block a user