Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fx setlist navbar on middle/small viewports #206

Merged
merged 1 commit into from
Feb 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions src/modals/SetlistPresent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
@click="presentation.prev()"
>
<icon-arrow-left />
<div v-if="currentPosition > 0" class="hidden lg:flex items-center gap-2">
<div class="max-w-3xs truncate">
<div v-if="currentPosition > 0" class="hidden md:flex items-center gap-2">
<div class="hidden 2xl:block max-w-3xs truncate">
{{ songs[currentPosition-1].title }}
</div>
<div class="text-lg leading-4 font-mono font-bold text-spring-600 dark:text-spring-400">
Expand All @@ -62,8 +62,8 @@
title="Next Song"
@click="presentation.next()"
>
<div v-if="currentPosition < songs.length-1" class="hidden lg:flex items-center gap-2">
<div class="max-w-3xs truncate">
<div v-if="currentPosition < songs.length-1" class="hidden md:flex items-center gap-2">
<div class="hidden 2xl:block max-w-3xs truncate">
{{ songs[currentPosition+1].title }}
</div>
<div class="text-lg leading-4 font-mono font-bold text-spring-600 dark:text-spring-400">
Expand All @@ -76,7 +76,7 @@
<div class="font-mono text-2xl px-4">{{ timeonly }}</div>
<!-- song info -->
<secondary-button
class="hidden md:block"
class="hidden lg:block"
:disabled="!songs[currentPosition].note"
:title="tooltip('info')"
@click="songs[currentPosition].note ? showModal.infosongdata = true : null"
Expand All @@ -85,7 +85,7 @@
</secondary-button>
<!-- toggle synchronisation -->
<secondary-button
class="hidden md:block"
class="hidden lg:block"
:title="tooltip('sync')"
@click="autoSync = !autoSync"
>
Expand All @@ -94,7 +94,7 @@
</secondary-button>
<!-- toggle content visibility -->
<secondary-button
class="hidden md:block"
class="hidden lg:block"
:title="tooltip('display')"
@click="hide = !hide"
>
Expand All @@ -103,23 +103,23 @@
</secondary-button>
<!-- toggle theme -->
<secondary-button
class="hidden md:block"
class="hidden lg:block"
:title="tooltip('invert')"
@click="dark = !dark"
>
<icon-brightness :class="{ 'stroke-spring-400': !dark }" />
</secondary-button>
<!-- toggle chords -->
<secondary-button
class="hidden md:block"
class="hidden lg:block"
:title="tooltip('chords')"
@click="emit('chords')"
>
<icon-music v-if="chords" class="stroke-spring-400" />
<icon-music-off v-else />
</secondary-button>
<!-- dropdown for small viewports -->
<div class="md:hidden">
<div class="lg:hidden">
<dropdown position="up">
<button
class="px-3 py-2 w-full flex items-center gap-3 hover:bg-blade-100 dark:hover:bg-blade-750"
Expand Down
Loading