melhorando a leitura de projetos no mmpCreator

This commit is contained in:
JotaChina committed 2025-12-23 20:56:56 -03:00
1 parent c9af1d3c44
commit e98a2bc416
2 files changed
+16

No files matched your search

+7
View File
@@ -369,6 +369,13 @@ export function renderAudioEditor() {
clipDiv.style.left = `${leftPos}px`;
clipDiv.style.width = `${widthDim}px`;
clipDiv.style.height = "100%";
const gridStyle = getComputedStyle(grid);
clipDiv.style.backgroundImage = gridStyle.backgroundImage;
clipDiv.style.backgroundSize = gridStyle.backgroundSize;
clipDiv.style.backgroundRepeat = "repeat";
// Alinha o padrão do grid com a timeline (não reinicia no começo do bloco)
clipDiv.style.backgroundPosition = `-${leftPos}px 0px`;
clipDiv.style.backgroundColor = "rgba(0, 170, 170, 0.6)";
clipDiv.style.border = "1px solid #00aaaa";
clipDiv.style.boxSizing = "border-box";