抽屉与弹框样式优化

main
ysn 3 days ago
parent 0d92d93c34
commit 1f6fff708b
  1. 39
      src/assets/styles/element-ui.scss
  2. 5
      src/assets/styles/ruoyi.scss
  3. 7
      src/views/message/components/GroupSetting.vue
  4. 11
      src/views/message/components/SearchRecord.vue

@ -48,15 +48,23 @@
// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
transform: none;
left: 0;
position: relative;
margin: 0 auto;
border: 1px solid $base-menu-background;
position: absolute;
top: 50% !important;
left: 50% !important;
transform: translate(-50%, -50%) !important;
margin: 0 !important;
.el-dialog__header {
background: #eff6f6;
&::before {
content: '';
display: inline-block;
width: 3px;
height: 16px;
background-color: #009688;
border-radius: 2px;
margin-right: 8px;
}
.el-dialog__title {
color: $base-menu-background;
}
@ -68,12 +76,25 @@
border: 1px solid $base-menu-background;
.el-drawer__header {
padding: 20px 20px 10px;
background: #eff6f6;
.el-drawer__title {
color: $base-menu-background;
margin-bottom: 0;
color: $base-menu-background;
&::before {
content: '';
display: inline-block;
width: 3px;
height: 16px;
background-color: #009688;
border-radius: 2px;
margin-right: 8px;
}
}
.el-drawer__body {
padding: 8px 20px !important;
}
}
.el-card {

@ -76,11 +76,6 @@
.el-message-box__status + .el-message-box__message{
word-break: break-word;
}
.el-dialog:not(.is-fullscreen) {
margin-top: 6vh !important;
}
.el-dialog__body {
padding: 8px 20px !important;
}

@ -1,10 +1,11 @@
<template>
<div>
<el-dialog
<el-drawer
title="群设置"
:visible.sync="visible"
width="400px"
:size="400"
append-to-body
direction="rtl"
>
<div class="group-setting">
<!-- 群头像和名称 -->
@ -111,7 +112,7 @@
</el-button>
</div>
</div>
</el-dialog>
</el-drawer>
<!-- 添加成员弹窗 -->
<CreateGroupDialog

@ -1,9 +1,10 @@
<template>
<el-dialog
<el-drawer
title="聊天记录"
:visible.sync="visible"
width="40%"
:size="400"
append-to-body
direction="rtl"
>
<div class="search-record">
<!-- 分类标签 -->
@ -85,7 +86,7 @@
</div>
</div>
</div>
</el-dialog>
</el-drawer>
</template>
<script>
@ -102,7 +103,7 @@ export default {
query: {},
list: [],
page: 1,
size: 10,
size: 20,
loadingMore: false,
isNoMore: false,
//
@ -298,7 +299,7 @@ export default {
<style lang="scss" scoped>
.search-record {
height: 500px;
height: calc(100vh - 120px);
display: flex;
flex-direction: column;
}

Loading…
Cancel
Save