🐛 修复指针可选中全部文本

This commit is contained in:
柚子
2025-03-07 16:00:35 +08:00
parent a2d4eb3b56
commit e6d94beb78
2 changed files with 16 additions and 8 deletions

View File

@@ -139,3 +139,11 @@
::-webkit-scrollbar-corner {
display: none;
}
:root {
/* 禁止鼠标选中文本 */
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

View File

@@ -114,7 +114,7 @@ const AppDetail: Component = () => {
)}
</div>
<div class="py-2" />
<h2 class="app-name text-2xl font-bold pt-2">{app()?.Name}</h2>
<h2 class="app-name text-2xl font-bold pt-2 select-text">{app()?.Name}</h2>
</div>
<div class="flex flex-col gap-2 w-[120px]">
{(() => {
@@ -269,34 +269,34 @@ const AppDetail: Component = () => {
<div class="mt-2 w-full">
<div class="py-2">
<h3 class="text-lg font-semibold"></h3>
<p class="description text-muted-foreground">{app()?.More}</p>
<p class="description text-muted-foreground select-text">{app()?.More}</p>
</div>
<div class="py-2">
<h3 class="text-lg font-semibold"></h3>
<div class="grid grid-cols-2 sm:grid-cols-3 lg:grid-cols-4 xl:grid-cols-5 gap-4 mt-2 text-sm text-muted-foreground">
<div class="flex flex-col">
<span class="text-xs text-muted-foreground mb-1"></span>
<span>{app()?.Size}</span>
<span class='select-text'>{app()?.Size}</span>
</div>
<div class="flex flex-col">
<span class="text-xs text-muted-foreground mb-1"></span>
<span>{app()?.Category}</span>
<span class='select-text'>{app()?.Category}</span>
</div>
<div class="flex flex-col">
<span class="text-xs text-muted-foreground mb-1"></span>
<span>{app()?.Pkgname}</span>
<span class='select-text'>{app()?.Pkgname}</span>
</div>
<div class="flex flex-col">
<span class="text-xs text-muted-foreground mb-1"></span>
<span>{app()?.Update}</span>
<span class='select-text'>{app()?.Update}</span>
</div>
<div class="flex flex-col">
<span class="text-xs text-muted-foreground mb-1"></span>
<span>{app()?.Author}</span>
<span class='select-text'>{app()?.Author}</span>
</div>
<div class="flex flex-col">
<span class="text-xs text-muted-foreground mb-1">稿</span>
<span>{app()?.Contributor}</span>
<span class='select-text'>{app()?.Contributor}</span>
</div>
<div class="flex flex-col">
<span class="text-xs text-muted-foreground mb-1"></span>