- VideoAnalysis 组件性能优化:使用 memo/useMemo/useCallback,添加详情缓存和虚拟滚动 - 修复 Ant Design Modal/Descriptions/Table 内文字无法复制的问题 - 新增 AntdProvider 组件,解决 layout.tsx 不能加 'use client' 的问题 - 添加云图 API 参数测试,更新 CLAUDE.md 文档 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
60 lines
1.2 KiB
CSS
60 lines
1.2 KiB
CSS
@tailwind base;
|
|
@tailwind components;
|
|
@tailwind utilities;
|
|
|
|
:root {
|
|
--background: #ffffff;
|
|
--foreground: #171717;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--background: #0a0a0a;
|
|
--foreground: #ededed;
|
|
}
|
|
}
|
|
|
|
body {
|
|
color: var(--foreground);
|
|
background: var(--background);
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
}
|
|
|
|
@layer utilities {
|
|
.text-balance {
|
|
text-wrap: balance;
|
|
}
|
|
}
|
|
|
|
/* Ant Design Modal 内容可复制 */
|
|
.ant-modal-body {
|
|
user-select: text !important;
|
|
-webkit-user-select: text !important;
|
|
}
|
|
|
|
.ant-modal-body * {
|
|
user-select: text !important;
|
|
-webkit-user-select: text !important;
|
|
}
|
|
|
|
/* Descriptions 所有内容可复制 - Ant Design v6 兼容 */
|
|
.ant-descriptions-item-content,
|
|
.ant-descriptions-item-content *,
|
|
.ant-descriptions td,
|
|
.ant-descriptions td *,
|
|
[class*="ant-descriptions"] td,
|
|
[class*="ant-descriptions"] td * {
|
|
user-select: text !important;
|
|
-webkit-user-select: text !important;
|
|
-moz-user-select: text !important;
|
|
-ms-user-select: text !important;
|
|
cursor: text;
|
|
}
|
|
|
|
/* 确保表格单元格内容可选 */
|
|
.ant-table-cell,
|
|
.ant-table-cell * {
|
|
user-select: text !important;
|
|
-webkit-user-select: text !important;
|
|
}
|