Merge branch '6105-createClaimNotes' of https://gitea.verdnatura.es/verdnatura/salix-front into 6105-createClaimNotes
gitea/salix-front/pipeline/head This commit looks good Details

This commit is contained in:
Jorge Penadés 2023-08-24 14:56:32 +02:00
commit 86874b1dc7
3 changed files with 38 additions and 21 deletions

View File

@ -38,7 +38,13 @@ const pinnedModulesRef = ref();
</QTooltip> </QTooltip>
</QBtn> </QBtn>
<RouterLink to="/"> <RouterLink to="/">
<QBtn class="q-ml-xs" color="primary" flat round> <QBtn
class="q-ml-xs"
color="primary"
flat
round
v-if="!quasar.platform.is.mobile"
>
<QAvatar square size="md"> <QAvatar square size="md">
<QImg <QImg
src="~/assets/logo_icon.svg" src="~/assets/logo_icon.svg"
@ -56,7 +62,7 @@ const pinnedModulesRef = ref();
<QBadge label="Beta" align="top" /> <QBadge label="Beta" align="top" />
</QToolbarTitle> </QToolbarTitle>
<QSpace /> <QSpace />
<div id="searchbar"></div> <div id="searchbar" class="searchbar"></div>
<QSpace /> <QSpace />
<div class="q-pl-sm q-gutter-sm row items-center no-wrap"> <div class="q-pl-sm q-gutter-sm row items-center no-wrap">
<div id="actions-prepend"></div> <div id="actions-prepend"></div>
@ -70,13 +76,27 @@ const pinnedModulesRef = ref();
{{ t('Go to Salix') }} {{ t('Go to Salix') }}
</QTooltip> </QTooltip>
</QBtn> </QBtn>
<QBtn id="pinnedModules" icon="apps" flat dense rounded> <QBtn
:class="{ 'q-pa-none': quasar.platform.is.mobile }"
id="pinnedModules"
icon="apps"
flat
dense
rounded
>
<QTooltip bottom> <QTooltip bottom>
{{ t('globals.pinnedModules') }} {{ t('globals.pinnedModules') }}
</QTooltip> </QTooltip>
<PinnedModules ref="pinnedModulesRef" /> <PinnedModules ref="pinnedModulesRef" />
</QBtn> </QBtn>
<QBtn rounded dense flat no-wrap id="user"> <QBtn
:class="{ 'q-pa-none': quasar.platform.is.mobile }"
rounded
dense
flat
no-wrap
id="user"
>
<QAvatar size="lg"> <QAvatar size="lg">
<QImg <QImg
:src="`/api/Images/user/160x160/${user.id}/download?access_token=${token}`" :src="`/api/Images/user/160x160/${user.id}/download?access_token=${token}`"
@ -95,6 +115,11 @@ const pinnedModulesRef = ref();
</QHeader> </QHeader>
</template> </template>
<style lang="scss" scoped>
.searchbar {
width: max-content;
}
</style>
<i18n> <i18n>
en: en:
Go to Salix: Go to Salix Go to Salix: Go to Salix

View File

@ -35,19 +35,13 @@ async function redirect() {
<template> <template>
<QMenu anchor="bottom left" max-width="300px" max-height="400px"> <QMenu anchor="bottom left" max-width="300px" max-height="400px">
<div v-if="pinnedModules.length >= 0" class="row justify-around q-pa-md"> <div v-if="pinnedModules.length >= 0" class="row justify-around q-pa-md">
<QBtn <QBtn flat stack size="lg" icon="more_up" @click="redirect($route.params.id)">
flat <div class="button-text">Salix</div>
stack
size="lg"
icon="more_up"
class="col-5"
@click="redirect($route.params.id)"
>
<div class="text-center button-text">Salix</div>
</QBtn> </QBtn>
<QBtn flat stack size="lg" icon="home" class="col-5" to="/"> <QBtn flat stack size="lg" icon="home" to="/">
<div class="text-center button-text">{{ t('Home') }}</div> <div class="button-text">{{ t('Home') }}</div>
</QBtn> </QBtn>
<div class="row col-12 justify-around q-mt-md"> <div class="row col-12 justify-around q-mt-md">
<QBtn <QBtn
flat flat

View File

@ -2,6 +2,8 @@
import { onMounted, ref } from 'vue'; import { onMounted, ref } from 'vue';
import { useRouter, useRoute } from 'vue-router'; import { useRouter, useRoute } from 'vue-router';
import { useArrayData } from 'composables/useArrayData'; import { useArrayData } from 'composables/useArrayData';
import { useQuasar } from 'quasar';
const quasar = useQuasar();
const props = defineProps({ const props = defineProps({
dataKey: { dataKey: {
@ -93,7 +95,7 @@ async function search() {
autofocus autofocus
> >
<template #prepend> <template #prepend>
<QIcon name="search" /> <QIcon name="search" v-if="!quasar.platform.is.mobile" />
</template> </template>
<template #append> <template #append>
<QIcon <QIcon
@ -112,13 +114,9 @@ async function search() {
</template> </template>
<style lang="scss" scoped> <style lang="scss" scoped>
.q-field {
width: 250px;
}
@media screen and (min-width: $breakpoint-sm-max) { @media screen and (min-width: $breakpoint-sm-max) {
.q-field { .q-field {
width: 400px; width: 450px;
} }
} }