fix(01): profile layout

This commit is contained in:
puriphatt 2024-09-27 15:22:02 +07:00
parent df7ecfcdcf
commit 4de34d2914

View file

@ -1684,9 +1684,12 @@ watch(currentHq, () => {
} }
" "
> >
<div class="q-mx-lg q-mt-lg"> <div
<!-- title="บริษัทจ๊อบส์ เวิร์คเกอร์ เซอร์วิส จำกัด" :class="{
caption="Jobs Worker Service Co., Ltd." --> 'q-mx-lg q-my-md': $q.screen.gt.sm,
'q-mx-md q-my-sm': !$q.screen.gt.sm,
}"
>
<ProfileBanner <ProfileBanner
active active
useToggle useToggle
@ -1739,14 +1742,23 @@ watch(currentHq, () => {
" "
/> />
</div> </div>
<div class="col q-pa-lg"> <div
class="col"
:class="{
'q-px-lg q-pb-lg': $q.screen.gt.sm,
'q-px-md q-pb-sm': !$q.screen.gt.sm,
}"
>
<div <div
style="overflow-y: auto" style="overflow-y: auto"
class="row full-width full-height surface-1 rounded relative-position" class="row full-width full-height surface-1 rounded bordered relative-position"
> >
<div <div
v-if="currentTab === 'main'" v-if="currentTab === 'main'"
class="q-py-md q-px-lg" :class="{
'q-py-md q-px-lg': $q.screen.gt.sm,
'q-py-sm q-px-lg': !$q.screen.gt.sm,
}"
style="position: absolute; z-index: 99999; top: 0; right: 0" style="position: absolute; z-index: 99999; top: 0; right: 0"
> >
<div <div
@ -1840,8 +1852,11 @@ watch(currentHq, () => {
</div> </div>
<div <div
class="col-12 col-md-10 q-py-md q-pr-md full-height q-gutter-y-xl" class="col-12 col-md-10 full-height"
:class="$q.screen.xs ? 'q-pl-md' : 'q-pl-sm'" :class="{
'q-py-md q-pr-md ': $q.screen.gt.sm,
'q-py-md q-px-lg': !$q.screen.gt.sm,
}"
id="branch-form" id="branch-form"
style="overflow-y: auto" style="overflow-y: auto"
> >
@ -1865,6 +1880,7 @@ watch(currentHq, () => {
title="form.field.basicInformation" title="form.field.basicInformation"
:view="isSubCreate || !!currentId" :view="isSubCreate || !!currentId"
onCreate onCreate
class="q-mb-xl"
/> />
<FormBranchContact <FormBranchContact
id="form-contact" id="form-contact"
@ -1880,6 +1896,7 @@ watch(currentHq, () => {
title="branch.form.group.contact" title="branch.form.group.contact"
:dense="true" :dense="true"
:outlined="true" :outlined="true"
class="q-mb-xl"
/> />
<AddressForm <AddressForm
@ -1901,6 +1918,7 @@ watch(currentHq, () => {
v-model:street="formData.street" v-model:street="formData.street"
v-model:streetEN="formData.streetEN" v-model:streetEN="formData.streetEN"
:readonly="formType === 'view'" :readonly="formType === 'view'"
class="q-mb-xl"
/> />
<FormLocation <FormLocation
id="form-location" id="form-location"
@ -1911,6 +1929,7 @@ watch(currentHq, () => {
outlined outlined
dense dense
title="branch.form.group.location" title="branch.form.group.location"
class="q-mb-xl"
/> />
<FormQr <FormQr
id="form-qr" id="form-qr"
@ -1924,6 +1943,7 @@ watch(currentHq, () => {
} }
" "
@edit-qr="() => refQrCodeUpload && refQrCodeUpload.browse()" @edit-qr="() => refQrCodeUpload && refQrCodeUpload.browse()"
class="q-mb-xl"
/> />
<FormBank <FormBank
id="form-bank" id="form-bank"
@ -1943,6 +1963,7 @@ watch(currentHq, () => {
refQrCodeUpload && refQrCodeUpload.browse(); refQrCodeUpload && refQrCodeUpload.browse();
} }
" "
class="q-mb-xl"
/> />
<FormBranchAdmin <FormBranchAdmin
@ -2017,7 +2038,12 @@ watch(currentHq, () => {
hide-action hide-action
> >
<InfoForm> <InfoForm>
<div class="q-mx-lg q-mt-lg"> <div
:class="{
'q-mx-lg q-my-md': $q.screen.gt.sm,
'q-mx-md q-my-sm': !$q.screen.gt.sm,
}"
>
<ProfileBanner <ProfileBanner
:active="formData.status !== 'INACTIVE'" :active="formData.status !== 'INACTIVE'"
useToggle useToggle
@ -2077,13 +2103,22 @@ watch(currentHq, () => {
/> />
</div> </div>
<div class="col q-pa-lg"> <div
class="col"
:class="{
'q-px-lg q-pb-lg': $q.screen.gt.sm,
'q-px-md q-pb-sm': !$q.screen.gt.sm,
}"
>
<div <div
style="overflow-y: auto" style="overflow-y: auto"
class="row full-width full-height surface-1 rounded relative-position" class="row full-width full-height surface-1 rounded bordered relative-position"
> >
<div <div
class="q-py-md q-px-lg" :class="{
'q-py-md q-px-lg': $q.screen.gt.sm,
'q-py-sm q-px-lg': !$q.screen.gt.sm,
}"
style="position: absolute; z-index: 99999; top: 0; right: 0" style="position: absolute; z-index: 99999; top: 0; right: 0"
> >
<div <div
@ -2170,8 +2205,11 @@ watch(currentHq, () => {
/> />
</div> </div>
<div <div
class="col-12 col-md-10 q-py-md q-pr-md full-height" class="col-12 col-md-10 full-height"
:class="$q.screen.xs ? 'q-pl-md' : 'q-pl-sm'" :class="{
'q-py-md q-pr-md ': $q.screen.gt.sm,
'q-py-md q-px-lg': !$q.screen.gt.sm,
}"
id="branch-info" id="branch-info"
style="overflow-y: auto" style="overflow-y: auto"
> >