Skip to content

Commit 8351f51

Browse files
authored
➕ merge pull request #181 from devmount/add-buttons
Add buttons
2 parents f5f527a + 2609bb6 commit 8351f51

7 files changed

Lines changed: 1111 additions & 1099 deletions

File tree

src/App.vue

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
class="lg:flex min-h-screen"
77
>
88
<!-- menu toggle button -->
9-
<button class="fixed lg:hidden transition-all top-2 right-2 lg:top-4 lg:right-4 px-2 py-1 z-10 flex items-center" :class="{ 'right-64 mr-4': open }" @click="open = true">
9+
<button
10+
class="
11+
fixed lg:hidden transition-all top-2 right-2 lg:top-4 lg:right-4 px-2 py-1 z-10 flex items-center rounded
12+
bg-blade-100/75 dark:bg-blade-850/75
13+
"
14+
:class="{ 'right-64 mr-4': open }"
15+
@click="open = true"
16+
>
1017
<icon-menu2 class="w-8 h-8 stroke-2" />
1118
</button>
1219

@@ -38,8 +45,8 @@
3845
<div v-if="ready.songs" class="font-bold">{{ Object.keys(c.songs).length }}</div>
3946
<secondary-button
4047
v-if="userRoles[c.permissions[auth.user].role] > 2"
41-
class="!p-1 tooltip tooltip-left"
42-
:data-tooltip="t('tooltip.songAdd')"
48+
class="!p-1"
49+
:title="t('tooltip.songAdd')"
4350
@click.stop.prevent="createNewSong"
4451
>
4552
<icon-plus class="w-5 h-5 stroke-1.5" />
@@ -57,8 +64,8 @@
5764
<label v-if="ready.setlists" class="font-bold">{{ setlistCount }}</label>
5865
<secondary-button
5966
v-if="userRoles[c.permissions[auth.user].role] > 1"
60-
class="!p-1 tooltip tooltip-left"
61-
:data-tooltip="t('tooltip.setlistAdd')"
67+
class="!p-1"
68+
:title="t('tooltip.setlistAdd')"
6269
@click.stop.prevent="createNewSetlist"
6370
>
6471
<icon-plus class="w-5 h-5 stroke-1.5" />
@@ -164,7 +171,9 @@
164171
:tags="c.tags"
165172
:users="c.users"
166173
@started="loading=true"
174+
@add-song="createNewSong"
167175
@edit-song="editExistingSong"
176+
@add-setlist="createNewSetlist"
168177
@edit-setlist="editExistingSetlist"
169178
/>
170179
</div>

src/modals/SongSet.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@
176176
<div>{{ t('field.content') }} <span class="text-rose-600">*</span></div>
177177
<secondary-button
178178
class="!p-1"
179-
:data-tooltip="t('modal.songSyntaxCheatsheet')"
179+
:title="t('modal.songSyntaxCheatsheet')"
180180
@click="showModal.infosongsyntax = true"
181181
>
182182
<icon-book class="w-4 h-4 stroke-1.5" />

0 commit comments

Comments
 (0)