style: 清理 CategorySelector 和 TitleBar 中的 @apply 违规 (M-UI-10/M-UI-12)

This commit is contained in:
alger
2026-03-15 15:13:56 +08:00
parent a7b05e6d02
commit 66b5aac224
2 changed files with 20 additions and 46 deletions
+9 -20
View File
@@ -1,7 +1,11 @@
<template>
<div id="title-bar" @mousedown="drag">
<div
id="title-bar"
class="flex justify-between px-6 py-2 select-none relative text-dark dark:text-white"
@mousedown="drag"
>
<div id="title">Alger Music</div>
<div id="buttons">
<div id="buttons" class="flex gap-4">
<n-button
v-if="!isElectron"
type="primary"
@@ -14,13 +18,13 @@
下载桌面版
</n-button>
<template v-if="isElectron">
<div class="button" @click="miniWindow">
<div class="text-gray-600 dark:text-gray-400 hover:text-green-500" @click="miniWindow">
<i class="iconfont ri-picture-in-picture-line"></i>
</div>
<div class="button" @click="minimize">
<div class="text-gray-600 dark:text-gray-400 hover:text-green-500" @click="minimize">
<i class="iconfont icon-minisize"></i>
</div>
<div class="button" @click="handleClose">
<div class="text-gray-600 dark:text-gray-400 hover:text-green-500" @click="handleClose">
<i class="iconfont icon-close"></i>
</div>
</template>
@@ -188,25 +192,10 @@ const drag = (event: MouseEvent) => {
<style scoped lang="scss">
#title-bar {
-webkit-app-region: drag;
@apply flex justify-between px-6 py-2 select-none relative;
@apply text-dark dark:text-white;
z-index: 3000;
}
#buttons {
@apply flex gap-4;
-webkit-app-region: no-drag;
}
.button {
@apply text-gray-600 dark:text-gray-400 hover:text-green-500;
}
.close-dialog-content {
@apply flex flex-col gap-4;
}
.dialog-footer {
@apply flex gap-4 justify-end;
}
</style>