优化右上角最小化/关闭按钮布局
parent
353e8bd0de
commit
9d1270374e
|
@ -14,6 +14,7 @@
|
||||||
- 优化播放进度条的动画效果
|
- 优化播放进度条的动画效果
|
||||||
- 现在添加下载任务时,后面添加的任务会在列表顶部插入
|
- 现在添加下载任务时,后面添加的任务会在列表顶部插入
|
||||||
- 优化歌单打开机制,现在歌单加载失败时会提示加载失败了,并且支持直接打开企鹅、酷我手机分享出来的歌单了
|
- 优化歌单打开机制,现在歌单加载失败时会提示加载失败了,并且支持直接打开企鹅、酷我手机分享出来的歌单了
|
||||||
|
- 优化右上角最小化/关闭按钮布局
|
||||||
|
|
||||||
### 修复
|
### 修复
|
||||||
|
|
||||||
|
|
|
@ -129,6 +129,8 @@ export default {
|
||||||
<style lang="less" module>
|
<style lang="less" module>
|
||||||
@import '../../assets/styles/layout.less';
|
@import '../../assets/styles/layout.less';
|
||||||
|
|
||||||
|
@control-btn-width: @height-toolbar * .5;
|
||||||
|
|
||||||
.toolbar {
|
.toolbar {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: @height-toolbar;
|
height: @height-toolbar;
|
||||||
|
@ -161,8 +163,10 @@ export default {
|
||||||
|
|
||||||
.control {
|
.control {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
-webkit-app-region: no-drag;
|
-webkit-app-region: no-drag;
|
||||||
|
padding: 0 @control-btn-width / 2;
|
||||||
&:hover {
|
&:hover {
|
||||||
button:before {
|
button:before {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
|
@ -171,7 +175,8 @@ export default {
|
||||||
|
|
||||||
button {
|
button {
|
||||||
position: relative;
|
position: relative;
|
||||||
width: @height-toolbar;
|
width: @control-btn-width;
|
||||||
|
height: @control-btn-width;
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -180,6 +185,9 @@ export default {
|
||||||
outline: none;
|
outline: none;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
+ button {
|
||||||
|
margin-left: @control-btn-width / 2;
|
||||||
|
}
|
||||||
|
|
||||||
&:after {
|
&:after {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
|
@ -224,8 +232,8 @@ export default {
|
||||||
content: ' ';
|
content: ' ';
|
||||||
width: 8px;
|
width: 8px;
|
||||||
height: 2px;
|
height: 2px;
|
||||||
left: @height-toolbar / 2 - 4;
|
left: @control-btn-width / 2 - 4;
|
||||||
top: @height-toolbar / 2 - 1;
|
top: @control-btn-width / 2 - 1;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue