fix: disable video controls text selection

This commit is contained in:
TerryM
2026-05-30 22:17:58 +08:00
parent ad4eeeb87a
commit 7ed4cbbeba
2 changed files with 8 additions and 1 deletions

View File

@@ -306,7 +306,7 @@ export function MessageInlineVideo({
) : null}
<div
className={`absolute inset-x-0 bottom-0 z-20 flex items-center bg-gradient-to-t from-black/85 via-black/45 to-transparent leading-none text-white ${t.bar}`}
className={`message-stream-noncopyable-control absolute inset-x-0 bottom-0 z-20 flex items-center bg-gradient-to-t from-black/85 via-black/45 to-transparent leading-none text-white ${t.bar}`}
onClick={(e) => e.stopPropagation()}
>
<button

View File

@@ -137,6 +137,13 @@ header button {
}
}
.message-stream-noncopyable-control,
.message-stream-noncopyable-control * {
-webkit-touch-callout: none;
-webkit-user-select: none;
user-select: none;
}
.message-stream-copyable-text,
.message-stream-copyable-text * {
-webkit-user-select: text;