From 1740535a6e1e715379add5bcfc3308f3a843b84c Mon Sep 17 00:00:00 2001 From: The1111mp Date: Tue, 5 Nov 2024 12:11:54 +0800 Subject: [PATCH] fix: intro.js causes the page to be unclickable Signed-off-by: The1111mp --- package.json | 2 +- src/global.css | 8 +++++++- src/pages/home/intro.css | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 8a9c724..85461db 100644 --- a/package.json +++ b/package.json @@ -85,5 +85,5 @@ "typescript": "^5.6.3", "vite": "^5.4.10" }, - "packageManager": "pnpm@9.12.2" + "packageManager": "pnpm@9.12.3" } diff --git a/src/global.css b/src/global.css index c04a486..42cabac 100644 --- a/src/global.css +++ b/src/global.css @@ -2,8 +2,14 @@ @tailwind components; @tailwind utilities; +html,body{ + width: 100%; + height: 100%; + overflow: hidden; +} + #root { - height: 100vh; + height: 100%; display: flex; flex-direction: column; } diff --git a/src/pages/home/intro.css b/src/pages/home/intro.css index 64a0e79..5778d50 100644 --- a/src/pages/home/intro.css +++ b/src/pages/home/intro.css @@ -46,7 +46,7 @@ tr.introjs-showElement > th { font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Heiti SC", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif; box-sizing: content-box; position: absolute; - visibility: hidden; + visibility: visible !important; z-index: 120; background-color: transparent; transition: all 0.3s ease-out;