Skip to content
Snippets Groups Projects
Commit 9d4abceb authored by RANWEZ Pierre's avatar RANWEZ Pierre :anchor:
Browse files

:lipstick: ui: controlchange record ui fix

parent 4d916fe0
No related branches found
No related tags found
1 merge request!1✨ feat: CSSLSD V2
...@@ -113,10 +113,10 @@ function initUi() { ...@@ -113,10 +113,10 @@ function initUi() {
$('#loopList').text(''); $('#loopList').text('');
for (let i = 0; i < result.records.loop.length; i++) { for (let i = 0; i < result.records.loop.length; i++) {
if (result.records.loop[i].length > 0) { if (result.records.loop[i].length > 0) {
$('#loopList').append('<tr><td>Boucle n°' + (i + 1) + '</td><td>' + result.records.loop[i][result.records.loop[i].length - 1].time + 'ms</td><td>' + result.records.loop[i].length + '</td><td><button id="record" value="' + i + '">' + recordIcon + '</button><a>note:<span contenteditable style="min-width:20px;display: inline-block;"></span></a><button id="loopPlay" value="' + i + '">' + (result.records.info[i].isLoop ? pauseIcon : playIcon) + '</button><a>note:<span contenteditable style="min-width:20px;display: inline-block;"></span></a></td><td><button id="loopReset" value="' + i + '">' + trashIcon + '</button></td></tr>'); $('#loopList').append('<tr><td>Boucle n°' + (i + 1) + '</td><td>' + result.records.loop[i][result.records.loop[i].length - 1].time + 'ms</td><td>' + result.records.loop[i].length + '</td><td><button id="record" value="' + i + '">' + recordIcon + '</button><a>note:<span contenteditable class="spanEditable"></span></a><button id="loopPlay" value="' + i + '">' + (result.records.info[i].isLoop ? pauseIcon : playIcon) + '</button><a>note:<span contenteditable class="spanEditable"></span></a></td><td><button id="loopReset" value="' + i + '">' + trashIcon + '</button></td></tr>');
} }
else { else {
$('#loopList').append('<tr><td>Boucle n°' + (i + 1) + '</td><td></td><td>0</td><td><button id="record" value="' + i + '">' + recordIcon + '</button><a>note:<span contenteditable style="min-width:20px;display: inline-block;"></span></a><button id="loopPlay" value="' + i + '">' + playIcon + '</button><a>note:<span contenteditable style="min-width:20px;display: inline-block;"></span></a></td><td><button id="loopReset" value="' + i + '">' + trashIcon + '</button></td></tr>'); $('#loopList').append('<tr><td>Boucle n°' + (i + 1) + '</td><td></td><td>0</td><td><button id="record" value="' + i + '">' + recordIcon + '</button><a>note:<span contenteditable class="spanEditable"></span></a><button id="loopPlay" value="' + i + '">' + playIcon + '</button><a>note:<span contenteditable class="spanEditable"></span></a></td><td><button id="loopReset" value="' + i + '">' + trashIcon + '</button></td></tr>');
} }
} }
}); });
......
...@@ -239,6 +239,15 @@ a[title]:hover { ...@@ -239,6 +239,15 @@ a[title]:hover {
display: none; display: none;
} }
td span, td svg, td label { td span,
td svg,
td label {
vertical-align: middle; vertical-align: middle;
} }
\ No newline at end of file
.spanEditable {
min-width: 20px;
display: inline-block;
padding-left: 2px;
padding-bottom: 2px;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment