From d6cda817e9bbe5111b5e67a7237e89cd0ef9509e Mon Sep 17 00:00:00 2001
From: sws <1141121512@qq.com>
Date: Tue, 3 Sep 2024 15:32:04 +0800
Subject: [PATCH] =?UTF-8?q?1.=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96=20sws=20?=
=?UTF-8?q?2024-09-03?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/layout/components/main/index.scss | 27 ++++++++++++++++-----
src/views/layout/components/main/index.vue | 20 ++++++---------
2 files changed, 28 insertions(+), 19 deletions(-)
diff --git a/src/views/layout/components/main/index.scss b/src/views/layout/components/main/index.scss
index c42ff795..6017b270 100644
--- a/src/views/layout/components/main/index.scss
+++ b/src/views/layout/components/main/index.scss
@@ -73,9 +73,11 @@
justify-content: center;
overflow: hidden;
height: 100%;
+ padding: 2rem 0;
.model-content {
position: relative;
- height: 84.6rem;
+ max-height: 84.6rem;
+ height: 100%;
.model-bottom {
position: absolute;
bottom: 0;
@@ -95,6 +97,7 @@
overflow-y: auto;
padding-top: 0.2rem;
max-height: 84.4rem;
+ height: 100%;
&::-webkit-scrollbar {
display: none;
}
@@ -102,6 +105,10 @@
width: 39rem;
background: #f5f5f5;
margin: 0 auto;
+ min-height: 100%;
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
.drag-area .float-window {
position: fixed;
max-width: 39rem;
@@ -112,6 +119,13 @@
max-width: 39rem;
overflow: hidden;
}
+ .model-wall-content {
+ min-height: 100%;
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ align-items: stretch;
+ }
}
}
// 悬浮按钮控制, 未选中情况下宽度自适应
@@ -139,6 +153,7 @@
position: absolute;
top: -0.2rem;
left: -0.2rem;
+ z-index: 1;
border: 0.2rem solid $cr-main;
}
.plug-in-animation {
@@ -279,7 +294,7 @@
transition: 0.4s ease;
}
.drawer-drag-bg {
- background: #F2F8FF;
+ background: #f2f8ff;
}
.drawer-drag-area {
height: calc(100% - 6rem);
@@ -288,8 +303,8 @@
.drawer-drag {
cursor: move;
}
- .drawer-drag:hover{
- background: #F2F8FF;
+ .drawer-drag:hover {
+ background: #f2f8ff;
.iconfont.icon-close-b {
display: block !important;
}
@@ -297,7 +312,7 @@
.iconfont.icon-close-b {
right: 1rem;
top: 1.4rem;
- color: #8A8A8A;
+ color: #8a8a8a;
cursor: pointer;
}
-}
\ No newline at end of file
+}
diff --git a/src/views/layout/components/main/index.vue b/src/views/layout/components/main/index.vue
index 80876624..71feec3b 100644
--- a/src/views/layout/components/main/index.vue
+++ b/src/views/layout/components/main/index.vue
@@ -46,7 +46,7 @@