#7283 finish item card sections #588

Merged
jorgep merged 24 commits from 7283-itemSectionsMigration into dev 2024-08-12 12:08:46 +00:00
3 changed files with 17 additions and 23 deletions
Showing only changes of commit 5bd0bbb3ac - Show all commits

View File

@ -7,7 +7,7 @@ import { useQuasar } from 'quasar';
import PinnedModules from './PinnedModules.vue';
import UserPanel from 'components/UserPanel.vue';
import VnBreadcrumbs from './common/VnBreadcrumbs.vue';
import VnImg from 'src/components/ui/VnImg.vue';
import VnAvatar from './ui/VnAvatar.vue';
const { t } = useI18n();
const stateStore = useStateStore();
@ -72,22 +72,13 @@ const pinnedModulesRef = ref();
</QTooltip>
<PinnedModules ref="pinnedModulesRef" />
</QBtn>
<QBtn
:class="{ 'q-pa-none': quasar.platform.is.mobile }"
rounded
dense
flat
no-wrap
id="user"
>
<QAvatar size="lg">
<VnImg
:id="user.id"
collection="user"
size="160x160"
:zoom-size="null"
<QBtn class="q-pa-none" rounded dense flat no-wrap id="user">
<VnAvatar
Review

Es la foto de un usuario

Es la foto de un usuario
:worker-id="user.id"
:title="user.name"
size="lg"
:color="false"
/>
</QAvatar>
<QTooltip bottom>
{{ t('globals.userPanel') }}
</QTooltip>

View File

@ -11,8 +11,8 @@ import VnSelect from 'src/components/common/VnSelect.vue';
import VnRow from 'components/ui/VnRow.vue';
import FetchData from 'components/FetchData.vue';
import { useClipboard } from 'src/composables/useClipboard';
import VnImg from 'src/components/ui/VnImg.vue';
import { useRole } from 'src/composables/useRole';
import VnAvatar from './ui/VnAvatar.vue';
const state = useState();
const session = useSession();
@ -153,10 +153,12 @@ const isEmployee = computed(() => useRole().isEmployee());
<QSeparator vertical inset class="q-mx-lg" />
<div class="col column items-center q-mb-sm">
<QAvatar size="80px">
<VnImg :id="user.id" collection="user" size="160x160" />
</QAvatar>
<VnAvatar
Review

Es la foto de un usuario.

Es la foto de un usuario.
:worker-id="user.id"
:title="user.name"
size="80px"
:color="false"
/>
<div class="text-subtitle1 q-mt-md">
<strong>{{ user.nickname }}</strong>
</div>

View File

@ -9,6 +9,7 @@ const $props = defineProps({
description: { type: String, default: null },
size: { type: String, default: null },
title: { type: String, default: null },
color: { type: Boolean, default: true },
});
const { getTokenMultimedia } = useSession();
const token = getTokenMultimedia();
@ -21,7 +22,7 @@ const showLetter = ref(false);
<div class="avatar-picture column items-center">
<QAvatar
:style="{
backgroundColor: useColor(title),
backgroundColor: color ? useColor(title) : 'transparent',
}"
:size="$props.size"
:title="title"