fix: แก้ layout

This commit is contained in:
Net 2024-06-20 13:21:28 +07:00
parent 987c82f5c4
commit bbfa9e8dbd

View file

@ -19,11 +19,12 @@ defineProps<{
<div class="col-4 app-text-muted"> <div class="col-4 app-text-muted">
{{ $t(`formDialogTitleInformation`) }} {{ $t(`formDialogTitleInformation`) }}
</div> </div>
<div class="col-8 row q-col-gutter-md"> <div class="col-8 row q-col-gutter-md">
<q-input <q-input
for="input-code" for="input-code"
:dense="dense"
:outlined="!readonly" :outlined="!readonly"
:dense="dense"
:readonly="readonly" :readonly="readonly"
:borderless="readonly" :borderless="readonly"
hide-bottom-space hide-bottom-space
@ -55,20 +56,54 @@ defineProps<{
class="col-12" class="col-12"
:label="$t('serviceDetail')" :label="$t('serviceDetail')"
v-model="detail" v-model="detail"
autogrow
/> />
<div class="col-12" v-if="readonly"> <div class="col-12" v-if="readonly">
<div style="padding-top: 12px"> <q-field
<text style="padding-left: 12px; color: rgba(0, 0, 0, 0.6)"> class="rounded"
:class="{ 'surface-2': remark !== undefined }"
:label="$t('detail')"
stack-label
dense
readonly
borderless
>
<template #label>
{{ $t('detail') }} {{ $t('detail') }}
</text> </template>
<q-card-section v-html="remark" /> <template #control>
</div> <div class="full-width q-pa-xs rounded">
<q-card-section
v-if="!!remark"
class="rounded"
v-html="remark"
style="color: black; padding: 5px 0px 0px 0px"
/>
</div>
</template>
</q-field>
</div> </div>
<div class="col-12" v-else> <div class="col-12" v-else>
<div class="bordered rounded" style="padding-top: 12px"> <q-field
class="full-width q-pb-md"
:label="$t('detail')"
stack-label
outlined
dense
>
<q-editor
dense
class="rounded full-width"
v-model="remark"
min-height="5rem"
style="border: none; cursor: auto; color: black; height: 80%"
/>
</q-field>
<!-- <div class="bordered rounded" style="padding-top: 12px">
<text style="padding-left: 12px; color: rgba(0, 0, 0, 0.6)"> <text style="padding-left: 12px; color: rgba(0, 0, 0, 0.6)">
{{ $t('detail') }} {{ $t('detail') }}
</text> </text>
@ -80,7 +115,7 @@ defineProps<{
min-height="5rem" min-height="5rem"
style="border: none" style="border: none"
/> />
</div> </div> -->
</div> </div>
<q-input <q-input