Фикс стилей

This commit is contained in:
megavrilinvv
2023-07-18 12:18:15 +03:00
parent e5c0aee940
commit 2b2a5456d6
2 changed files with 12 additions and 8 deletions

View File

@@ -140,7 +140,7 @@ export default {
padding: 28px 32px padding: 28px 32px
.base-content .base-content
overflow-x: hidden overflow: hidden
width: auto width: auto
background-color: var(--default-white) background-color: var(--default-white)
box-shadow: 4px 4px 8px rgba(9, 10, 21, 0.1), -4px -4px 8px rgba(9, 10, 21, 0.1) box-shadow: 4px 4px 8px rgba(9, 10, 21, 0.1), -4px -4px 8px rgba(9, 10, 21, 0.1)

View File

@@ -11,10 +11,12 @@
.button.flex .button.flex
base-button(width="40px", @click="createForm") base-button(width="40px", @click="createForm")
q-icon(name="app:plus", size="12px") q-icon(name="app:plus", size="12px")
.button.flex.relative.btn-sidebar.button-svg.cursor-pointer(v-for="svg in patientData.arrSvg") .button.flex.relative.btn-sidebar.button-svg.cursor-pointer(
@click="()=>showActive(svg.name)",
v-for="svg in patientData.arrSvg"
)
q-btn( q-btn(
:class="{'active-btn': findActiveBtn(svg.name)}", :class="{'active-btn': findActiveBtn(svg.name)}",
@click="()=>showActive(svg.name)",
dense, dense,
style="borderRadius: 50%", style="borderRadius: 50%",
:padding="svg.name === 'group' ? '10.5px 7.5px' : '4px'" :padding="svg.name === 'group' ? '10.5px 7.5px' : '4px'"
@@ -149,7 +151,7 @@ export default {
}, },
computed: { computed: {
allLeave() { allLeave() {
return this.patientData.arrSvg.find((e) => e.active)?.active return this.patientData.arrSvg.find(({ active }) => active)?.active
? false ? false
: true; : true;
}, },
@@ -164,8 +166,8 @@ export default {
}, },
}, },
methods: { methods: {
findActiveBtn(name) { findActiveBtn(value) {
return this.patientData.arrSvg.find((e) => e.name === name)?.active return this.patientData.arrSvg.find(({ name }) => name === value)?.active
? true ? true
: false; : false;
}, },
@@ -252,7 +254,8 @@ export default {
.btn-sidebar .btn-sidebar
&:hover &:hover
& .separator & .separator
display: flex transition: 0.1s
opacity: 1
.status-wrapper .status-wrapper
width: 232px width: 232px
@@ -304,7 +307,8 @@ export default {
padding-left: 6px padding-left: 6px
.separator .separator
display: none transition: 0.1s
opacity: 0
z-index: 6 z-index: 6
align-items: center align-items: center
left: 72px left: 72px