Skip to content

Commit

Permalink
ソング:トラック選択中にトラック名のテキストフィールドを表示するようにする (#2316)
Browse files Browse the repository at this point in the history
Co-authored-by: Hiroshiba <[email protected]>
  • Loading branch information
sigprogramming and Hiroshiba authored Oct 26, 2024
1 parent 4f230a5 commit 8539e13
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/components/Sing/SideBar/TrackItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,15 @@
<QItemSection>
<QItemLabel class="track-name" @click.stop="uiLocked || selectTrack()">
<QInput
v-if="props.trackId === selectedTrackId"
v-model="temporaryTrackName"
dense
:disable="uiLocked"
@blur="updateTrackName"
/>
<div v-else class="walkaround-unselected-track-name">
{{ track.name }}
</div>
</QItemLabel>
<QItemLabel v-if="trackCharacter" caption class="singer-name">
<!-- ミュート中はアイコンを表示 -->
Expand Down Expand Up @@ -408,4 +412,11 @@ const singerName = computed(() => {
overflow: hidden;
text-overflow: ellipsis;
}
// 選択されていないトラックのトラック名の表示をQInputの見た目に合わせる
.walkaround-unselected-track-name {
margin-bottom: 2px;
margin-top: 3px;
letter-spacing: 0.00937em;
}
</style>

0 comments on commit 8539e13

Please sign in to comment.