0
0
Fork 0

refs #6082 v-if mobile icon search

This commit is contained in:
Carlos Satorres 2023-08-09 14:41:50 +02:00
parent bba6050c5f
commit f127c1019b
2 changed files with 13 additions and 16 deletions

View File

@ -77,7 +77,14 @@ onMounted(() => stateStore.setMounted());
</QTooltip>
<PinnedModules />
</QBtn>
<QBtn class="user-button" rounded dense flat no-wrap id="user">
<QBtn
class="{quasar.platform.is.mobile: 'q-pa-sm q-ml-xs'}"
rounded
dense
flat
no-wrap
id="user"
>
<QAvatar size="lg">
<QImg
:src="`/api/Images/user/160x160/${user.id}/download?access_token=${token}`"
@ -97,22 +104,10 @@ onMounted(() => stateStore.setMounted());
</template>
<style lang="scss" scoped>
.user-button {
display: flex;
align-items: center;
padding: 8px; /* Ajusta el valor de padding según tus necesidades */
/* Estilos específicos para dispositivos móviles */
@media (max-width: 768px) {
padding: 2px; /* Reduce el padding en dispositivos móviles */
margin-left: 1px;
}
}
.pinnedModules {
@media (max-width: 768px) {
padding: 2px; /* Reduce el padding en dispositivos móviles */
margin-left: 1px;
padding: 0px;
margin-left: 0px;
}
}
</style>

View File

@ -2,6 +2,8 @@
import { onMounted, ref } from 'vue';
import { useRouter, useRoute } from 'vue-router';
import { useArrayData } from 'composables/useArrayData';
import { useQuasar } from 'quasar';
const quasar = useQuasar();
const props = defineProps({
dataKey: {
@ -93,7 +95,7 @@ async function search() {
autofocus
>
<template #prepend>
<QIcon name="search" />
<QIcon name="search" v-if="!quasar.platform.is.mobile" />
</template>
<template #append>
<QIcon