fix: move computing spectrogram text to the center of current viewport of piano roll window

This commit is contained in:
Xiaohan-Tian
2026-05-02 00:09:33 -07:00
parent 5890a6d0b9
commit 6b8a470022
4 changed files with 89 additions and 62 deletions
+25 -1
View File
@@ -159,13 +159,37 @@
color: #ff4444;
}
.piano-roll-content-outer {
position: relative;
flex: 1;
overflow: hidden;
}
.piano-roll-content {
display: flex;
flex-direction: column;
flex: 1;
height: 100%;
overflow: auto;
}
.spectrogram-loading-overlay {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
pointer-events: none;
z-index: 100;
}
.spectrogram-loading-label {
padding: 6px 10px;
background: rgba(0, 0, 0, 0.6);
color: #aaa;
font-size: 11px;
border-radius: 3px;
}
.piano-grid-header {
display: grid;
grid-template-columns: repeat(var(--max-number-of-bars), var(--region-grid-bar-width));