Поправил отображение формы Основных данных

This commit is contained in:
DwCay
2023-03-31 18:58:14 +03:00
parent 8b6eb0401a
commit 3e5acfc8b6

View File

@@ -1,9 +1,9 @@
<template lang="pug"> <template lang="pug">
medical-form-wrapper(title="Основная информация") medical-form-wrapper(title="Основная информация")
.form-wrap.form.flex.gap-24.w-full .form-wrap.gap-24.w-full
.data-section.flex.flex-col.gap-4(v-for="data in configData") .data-section.flex.flex-col.gap-4(v-for="data in configData")
.font-semibold.text-sm.whitespace-nowrap {{data.dataLabel}} .font-semibold.text-sm.whitespace-nowrap {{data.dataLabel}}
.flex.justify-between.items-center.gap-4(v-for="field in data.fields") .flex.w-full.justify-between.items-center.gap-4(v-for="field in data.fields")
.label-field.font-sm.text-sm.whitespace-nowrap {{`${field.label} :`}} .label-field.font-sm.text-sm.whitespace-nowrap {{`${field.label} :`}}
.avatar-field.justify-start(v-if="field.type === 'avatar'") .avatar-field.justify-start(v-if="field.type === 'avatar'")
base-avatar(:size="40") base-avatar(:size="40")
@@ -55,15 +55,16 @@ export default {
min-width: 310px min-width: 310px
.input .input
color: purple color: purple
.data-section
width: 30%
@media(max-width: 1900px)
width: 28%
@media(max-width: 1700px)
width: 100%
.form-wrap .form-wrap
@media(max-width: 1700px) display: grid
flex-direction: column grid-template-columns: repeat(3, 1fr)
grid-template-rows: repeat(1, 1fr)
@media(max-width: 1900px)
grid-template-columns: repeat(2, 1fr)
grid-template-rows: repeat(2, 1fr)
@media(max-width: 1320px)
grid-template-columns: repeat(1, 1fr)
grid-template-rows: repeat(3, 1fr)
.label-field .label-field
color: var(--font-grey-color) color: var(--font-grey-color)
</style> </style>