Merge pull request #66 from tcsnzh/dev-tcsnzh

修改钉住样式。
This commit is contained in:
木偶 2021-10-11 09:43:13 +08:00 committed by GitHub
commit 2315e095cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,18 +80,6 @@
</a-list-item> </a-list-item>
</a-list> </a-list>
</div> </div>
<span
v-show="selected"
class="button-hide-on-blur"
@click="changeHideOnBlur"
>
<a-icon
type="pushpin"
:style="{
color: config.perf.common.hideOnBlur ? 'grey' : '#ea68a2',
}"
></a-icon>
</span>
</div> </div>
<div v-else class="rubick-select-subMenu"> <div v-else class="rubick-select-subMenu">
<div> <div>
@ -368,6 +356,10 @@ export default {
type === "separate" type === "separate"
) { ) {
const pluginMenu = [ const pluginMenu = [
{
label: this.config.perf.common.hideOnBlur ? "自动隐藏" : "钉住",
click: this.changeHideOnBlur,
},
{ {
label: "开发者工具", label: "开发者工具",
click: () => { click: () => {
@ -574,9 +566,4 @@ export default {
left: 0; left: 0;
} }
} }
.button-hide-on-blur {
padding: 0px 3px 0px 0px;
// 1/3
height: 33%;
}
</style> </style>