Skip to content

Commit

Permalink
パラメーターパネルを一旦非表示に
Browse files Browse the repository at this point in the history
  • Loading branch information
sigprogramming committed Jan 5, 2025
1 parent 7470bd8 commit 2e5b636
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions src/components/Sing/ScoreSequencer.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
<template>
<QSplitter
v-model="parameterPanelHeight"
:modelValue="isParameterPanelOpen ? parameterPanelHeight : 0"
reverse
unit="px"
horizontal
:disable="!isParameterPanelOpen"
:separatorStyle="{
display: isParameterPanelOpen ? 'block' : 'none',
overflow: 'hidden',
height: '4px',
}"
emitImmediately
@update:modelValue="setParameterPanelHeight"
>
<template #before>
<div class="score-sequencer full-height">
Expand Down Expand Up @@ -205,7 +209,7 @@
</div>
</template>
<template #after>
<SequencerParameterPanel />
<SequencerParameterPanel v-if="isParameterPanelOpen" />
</template>
</QSplitter>
</template>
Expand Down Expand Up @@ -418,6 +422,13 @@ const phraseInfosInOtherTracks = computed(() => {
});
const parameterPanelHeight = ref(300);
const isParameterPanelOpen = ref(false);
const setParameterPanelHeight = (height: number) => {
if (isParameterPanelOpen.value) {
parameterPanelHeight.value = height;
}
};
const ctrlKey = useCommandOrControlKey();
const editorFrameRate = computed(() => state.editorFrameRate);
Expand Down

0 comments on commit 2e5b636

Please sign in to comment.