refactor(tailwind.config.js): 禁用部分Tailwind CSS类以解决微信小程序兼容性问题

为了解决微信小程序中的兼容性问题,禁用了以下Tailwind CSS类:
- `gap`:微信小程序不支持 gap 属性- `lineClamp`:微信小程序不支持 line-clamp 类
- `textIndent`:禁用 text-indent
- `writingMode`:禁用 writing-mode
- `hyphens`:禁用 hyphens
```
This commit is contained in:
2025-09-10 11:59:03 +08:00
parent 7fa1e44441
commit 24c6e3aa9f
3 changed files with 18 additions and 2 deletions

View File

@@ -92,3 +92,12 @@ button[open-type="chooseAvatar"] {
image {
margin: 0; /* 全局设置图片的 margin */
}
/* 管理员面板功能项交互效果 */
.admin-feature-item {
transition: transform 0.15s ease-in-out;
}
.admin-feature-item:active {
transform: scale(0.95);
}

View File

@@ -117,7 +117,7 @@ const AdminPanel: React.FC<AdminPanelProps> = ({
{adminFeatures.map((feature) => (
<View
key={feature.id}
className={`${feature.color} border rounded-xl p-4 active:scale-95 transition-transform`}
className={`${feature.color} border rounded-xl p-4 admin-feature-item`}
onClick={feature.onClick}
>
<View className="flex items-center mb-2">