style(front): consistent empty state

This commit is contained in:
ArneBo 2025-02-13 22:22:49 +01:00
parent 0a475d1a02
commit 3aa79c9017
2 changed files with 12 additions and 8 deletions

View File

@ -1,7 +1,7 @@
<script setup lang="ts"> <script setup lang="ts">
import type { Track, Listening } from '~/types' import type { Track, Listening } from '~/types'
import { ref, reactive, watch, computed } from 'vue' import { ref, reactive, watch } from 'vue'
import { useStore } from '~/store' import { useStore } from '~/store'
import { clone } from 'lodash-es' import { clone } from 'lodash-es'
import { useI18n } from 'vue-i18n' import { useI18n } from 'vue-i18n'
@ -121,10 +121,12 @@ watch(() => props.websocketHandlers.includes('Listen'), (to) => {
<Alert <Alert
v-if="count === 0" v-if="count === 0"
blue blue
style="text-align: center;" align-items="center"
> >
<i class="bi bi-music-note-list" /> <h4>
<i class="bi bi-search" />
{{ t('components.audio.track.Widget.empty.noResults') }} {{ t('components.audio.track.Widget.empty.noResults') }}
</h4>
<Loader v-if="isLoading" /> <Loader v-if="isLoading" />
</Alert> </Alert>
<Section <Section

View File

@ -80,16 +80,18 @@ watch(
<Alert <Alert
v-else v-else
blue blue
align-items="center"
> >
<div> <h4>
<i class="bi bi-list" /> <i class="bi bi-search" />
{{ t('components.playlists.Widget.placeholder.noPlaylists') }} {{ t('components.playlists.Widget.placeholder.noPlaylists') }}
</div> </h4>
<Spacer /> <Spacer />
<Button <Button
v-if="store.state.auth.authenticated" v-if="store.state.auth.authenticated"
icon="bi-card-list" icon="bi-music-note-list"
primary primary
align-self="center"
@click="store.commit('playlists/chooseTrack', null)" @click="store.commit('playlists/chooseTrack', null)"
> >
{{ t('components.playlists.Widget.button.create') }} {{ t('components.playlists.Widget.button.create') }}