优化右上角最小化/关闭按钮布局

This commit is contained in:
lyswhut
2020-03-15 00:15:52 +08:00
parent 353e8bd0de
commit 9d1270374e
2 changed files with 12 additions and 3 deletions
+11 -3
View File
@@ -129,6 +129,8 @@ export default {
<style lang="less" module>
@import '../../assets/styles/layout.less';
@control-btn-width: @height-toolbar * .5;
.toolbar {
display: flex;
height: @height-toolbar;
@@ -161,8 +163,10 @@ export default {
.control {
display: flex;
align-items: center;
height: 100%;
-webkit-app-region: no-drag;
padding: 0 @control-btn-width / 2;
&:hover {
button:before {
opacity: 1;
@@ -171,7 +175,8 @@ export default {
button {
position: relative;
width: @height-toolbar;
width: @control-btn-width;
height: @control-btn-width;
background: none;
border: none;
display: flex;
@@ -180,6 +185,9 @@ export default {
outline: none;
padding: 0;
cursor: pointer;
+ button {
margin-left: @control-btn-width / 2;
}
&:after {
content: ' ';
@@ -224,8 +232,8 @@ export default {
content: ' ';
width: 8px;
height: 2px;
left: @height-toolbar / 2 - 4;
top: @height-toolbar / 2 - 1;
left: @control-btn-width / 2 - 4;
top: @control-btn-width / 2 - 1;
background-color: #fff;
}
}