|
1 | 1 | <template>
|
2 | 2 | <ContentLoader v-slot :loading="playlist == null">
|
3 | 3 | <div class="d-flex align-items-center mb-2">
|
4 |
| - <h1 class="mb-0 mr-2 text-truncate"> |
| 4 | + <h1 class="mb-0 me-2 text-truncate"> |
5 | 5 | {{ playlist.name }}
|
6 | 6 | </h1>
|
7 |
| - <OverflowMenu class="ml-auto"> |
| 7 | + <OverflowMenu class="ms-auto"> |
8 | 8 | <ContextMenuItem icon="edit" :disabled="playlist.isReadOnly" @click="showEditModal = true">
|
9 | 9 | Edit
|
10 | 10 | </ContextMenuItem>
|
|
23 | 23 | <strong>{{ formatDuration(playlist.duration) }}</strong>
|
24 | 24 | <template v-if="playlist.isPublic">
|
25 | 25 | <span class="mx-1">•</span>
|
26 |
| - <span class="badge badge-secondary badge-pill"> |
| 26 | + <span class="badge bg-secondary rounded-pill"> |
27 | 27 | Public
|
28 | 28 | </span>
|
29 | 29 | </template>
|
30 | 30 | </div>
|
31 | 31 |
|
32 |
| - <div v-if="playlist.comment" class="mt-3"> |
| 32 | + <div v-if="playlist.comment" class="mt-3"> |
33 | 33 | {{ playlist.comment }}
|
34 | 34 | </div>
|
35 | 35 |
|
36 | 36 | <div class="text-nowrap mt-3">
|
37 |
| - <b-button variant="secondary" :disabled="playlist.tracks.length === 0" class="mr-2" @click="playNow"> |
38 |
| - <Icon icon="play" /> Play |
39 |
| - </b-button> |
40 |
| - <b-button variant="secondary" :disabled="playlist.tracks.length === 0" @click="shuffleNow"> |
41 |
| - <Icon icon="shuffle" /> Shuffle |
42 |
| - </b-button> |
| 37 | + <b-button variant="secondary" :disabled="playlist.tracks.length === 0" class="me-2" @click="playNow"> |
| 38 | + <Icon icon="play" /> Play |
| 39 | + </b-button> |
| 40 | + <b-button variant="secondary" :disabled="playlist.tracks.length === 0" @click="shuffleNow"> |
| 41 | + <Icon icon="shuffle" /> Shuffle |
| 42 | + </b-button> |
43 | 43 | </div>
|
44 | 44 |
|
45 | 45 | <TrackList v-if="playlist.tracks.length > 0" :tracks="playlist.tracks" class="mt-3">
|
|
56 | 56 | Edit playlist
|
57 | 57 | </template>
|
58 | 58 | <template #default="{ item }">
|
59 |
| - <div class="form-group"> |
60 |
| - <label>Name</label> |
| 59 | + <div class="mb-3"> |
| 60 | + <label class="form-label">Name</label> |
61 | 61 | <input v-model="item.name" class="form-control" type="text">
|
62 | 62 | </div>
|
63 |
| - <div class="form-group"> |
64 |
| - <label>Comment</label> |
| 63 | + <div class="mb-3"> |
| 64 | + <label class="form-label">Comment</label> |
65 | 65 | <textarea v-model="item.comment" class="form-control" />
|
66 | 66 | </div>
|
67 |
| - <div class="form-group"> |
68 |
| - <label class="mb-0">Public</label> |
| 67 | + <div class="mb-3"> |
| 68 | + <label class="form-label">Public</label> |
69 | 69 | <SwitchInput v-model="item.isPublic" />
|
70 | 70 | </div>
|
71 | 71 | </template>
|
|
0 commit comments