💄 fix(scroll): 调整滚动条样式

This commit is contained in:
BTMuli
2023-04-24 23:57:53 +08:00
parent ffc354a319
commit 4c8cb39bf6
5 changed files with 15 additions and 17 deletions

View File

@@ -116,10 +116,10 @@ async function writeData () {
console.info("开始恢复数据..."); console.info("开始恢复数据...");
const res = await restoreUiafData(); const res = await restoreUiafData();
if (res !== false) { if (res !== false) {
const { total, completed } = res; const { total, fin } = res;
console.info("开始恢复成就数据..."); console.info("开始恢复成就数据...");
const achievementsStore = useAchievementsStore(); const achievementsStore = useAchievementsStore();
achievementsStore.flushData(total, completed); achievementsStore.flushData(total, fin);
console.info("成就数据恢复完成!"); console.info("成就数据恢复完成!");
} else { } else {
console.info("未找到成就数据!"); console.info("未找到成就数据!");

View File

@@ -2,32 +2,30 @@
@import url("themes/default.css"); @import url("themes/default.css");
@import url("themes/dark.css"); @import url("themes/dark.css");
/** /*
* @description 隐藏应用最右边的滚动条 * @description 让滚动条在内侧显示
* @since Alpha v0.1.4 * @since Alpha v0.1.0
*/ */
html { html {
overflow-y: hidden; overflow: overlay;
} }
/* /*
* @description 侧边滚动条样式 * @description 侧边滚动条样式
* @since Alpha v0.1.3 * @since Alpha v0.1.3
*/ */
::-webkit-scrollbar { ::-webkit-scrollbar {
width: 10px; width: 8px;
height: 10px; border-radius: 5px;
border-radius: 10px;
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {
background: var(--scroll-bg); background: var(--scroll-bg);
border-radius: 10px; border-radius: 5px;
} }
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
background: #888; background: #96979A;
border-radius: 10px; border-radius: 5px;
} }
::-webkit-scrollbar-thumb:hover { ::-webkit-scrollbar-thumb:hover {

View File

@@ -10,7 +10,7 @@ html.dark {
--sidebar-bg: #1e1e1e; --sidebar-bg: #1e1e1e;
--sidebar-icon: #e1e1e1; --sidebar-icon: #e1e1e1;
--page-bg:#2a2a2a; --page-bg:#2a2a2a;
--scroll-bg: #393b40; --scroll-bg: #ECE5D8;
--calendar-btn-bg: #1e1e1e; --calendar-btn-bg: #1e1e1e;
--back-top-shadow: #000000; --back-top-shadow: #000000;
--theme-switch-icon: #e1e1e1; --theme-switch-icon: #e1e1e1;

View File

@@ -10,7 +10,7 @@ html.default {
--sidebar-bg: #485466; --sidebar-bg: #485466;
--sidebar-icon: #ece5d8; --sidebar-icon: #ece5d8;
--page-bg:#ece5d8; --page-bg:#ece5d8;
--scroll-bg: #f1f1f1; --scroll-bg: #2A2A2A;
--calendar-btn-bg: #393b40; --calendar-btn-bg: #393b40;
--back-top-shadow: #546d8b; --back-top-shadow: #546d8b;
--theme-switch-icon: #393b40; --theme-switch-icon: #393b40;

View File

@@ -51,8 +51,8 @@ onMounted(() => {
<style scoped> <style scoped>
.back-top { .back-top {
position: fixed; position: fixed;
right: 0.4rem; right: 20px;
bottom: 1rem; bottom: 20px;
width: 60px; width: 60px;
height: 60px; height: 60px;
border-radius: 50%; border-radius: 50%;