de7da9f1db
- 在 tailwind.config.js 中启用 darkMode: 'class' 并扩展语义化颜色变量 - 将全项目硬编码颜色(bg-white、text-gray-*、border-gray-* 等)替换为语义化类名 - 修复 popup/index.html 硬编码浅色背景色 - 同步更新相关单元测试中的类名断言
37 lines
952 B
HTML
37 lines
952 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Testing Tools - 标签页</title>
|
|
<meta name="manifest.type" content="browser_action" />
|
|
<style>
|
|
/* Force initial popup size before React hydration */
|
|
html, body {
|
|
width: 400px;
|
|
height: 600px;
|
|
margin: 0;
|
|
padding: 0;
|
|
overflow: hidden;
|
|
background-color: hsl(var(--background));
|
|
}
|
|
/* Ensure full size for the root container */
|
|
#root {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
/* If opened in a tab (mode=tab), reset the fixed size */
|
|
@media screen and (min-width: 600px) {
|
|
html, body {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
<script type="module" src="./main.tsx"></script>
|
|
</body>
|
|
</html>
|