Merge pull request #555 from DokiDoki1103/fix/ccr-account-modal-dark-theme [skip ci]

fix: 修复 CCR 账户弹窗暗黑主题失效问题
This commit is contained in:
Wesley Liddick
2025-10-13 11:25:33 +08:00
committed by GitHub
2 changed files with 14 additions and 14 deletions

View File

@@ -261,6 +261,10 @@
background: rgba(0, 0, 0, 0.6);
}
.dark .modal {
background: rgba(0, 0, 0, 0.75);
}
.modal-content {
background: rgba(255, 255, 255, 0.98);
border-radius: 24px;
@@ -271,6 +275,14 @@
/* 移除模糊效果 */
}
.dark .modal-content {
background: rgba(17, 24, 39, 0.95);
border: 1px solid rgba(75, 85, 99, 0.3);
box-shadow:
0 10px 25px -5px rgba(0, 0, 0, 0.3),
0 0 0 1px rgba(255, 255, 255, 0.05);
}
/* 弹窗滚动内容样式 */
.modal-scroll-content {
max-height: calc(90vh - 160px);

View File

@@ -2,7 +2,7 @@
<Teleport to="body">
<div v-if="show" class="modal fixed inset-0 z-50 flex items-center justify-center p-3 sm:p-4">
<div
class="modal-content custom-scrollbar mx-auto max-h-[90vh] w-full max-w-2xl overflow-y-auto p-4 sm:p-6 md:p-8"
class="modal-content custom-scrollbar mx-auto max-h-[90vh] w-full max-w-2xl overflow-y-auto rounded-2xl bg-white/90 p-4 shadow-xl backdrop-blur-xl dark:bg-gray-800/95 dark:shadow-2xl sm:p-6 md:p-8"
>
<div class="mb-4 flex items-center justify-between sm:mb-6">
<div class="flex items-center gap-2 sm:gap-3">
@@ -16,7 +16,7 @@
</h3>
</div>
<button
class="p-1 text-gray-400 transition-colors hover:text-gray-600"
class="p-1 text-gray-400 transition-colors hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-300"
@click="$emit('close')"
>
<i class="fas fa-times text-lg sm:text-xl" />
@@ -419,18 +419,6 @@ watch(
</script>
<style scoped>
.modal-content {
background: rgba(255, 255, 255, 0.9);
border-radius: 16px;
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}
:global(.dark) .modal-content {
background: rgba(17, 24, 39, 0.85);
}
.loading-spinner {
width: 20px;
height: 20px;