mirror of
https://github.com/BlowaterNostr/blowater.git
synced 2024-10-18 15:43:20 +00:00
enable selecting message text on desktop (#315)
This commit is contained in:
parent
bed584cb40
commit
b704949525
@ -326,7 +326,9 @@ function MessageBoxGroup(props: {
|
||||
const rows = [];
|
||||
rows.push(
|
||||
<li
|
||||
class={tw`px-4 hover:bg-[#32353B] w-full max-w-full flex items-start pr-8 mobile:pr-4 group relative mobile:select-none`}
|
||||
class={tw`px-4 hover:bg-[#32353B] w-full max-w-full flex items-start pr-8 mobile:pr-4 group relative ${
|
||||
mobileCheck() ? "select-none" : ""
|
||||
}`}
|
||||
>
|
||||
{MessageActions(first_group, props.emit)}
|
||||
<Avatar
|
||||
@ -372,7 +374,9 @@ function MessageBoxGroup(props: {
|
||||
const msg = messageGroups[i];
|
||||
rows.push(
|
||||
<li
|
||||
class={tw`px-4 hover:bg-[#32353B] w-full max-w-full flex items-center pr-8 group relative text-sm mobile:select-none`}
|
||||
class={tw`px-4 hover:bg-[#32353B] w-full max-w-full flex items-center pr-8 group relative text-sm ${
|
||||
mobileCheck() ? "select-none" : ""
|
||||
}`}
|
||||
>
|
||||
{MessageActions(msg, props.emit)}
|
||||
{Time(msg.created_at)}
|
||||
@ -638,3 +642,7 @@ class JitterPrevention {
|
||||
return !cancelled;
|
||||
}
|
||||
}
|
||||
|
||||
function mobileCheck() {
|
||||
return /iPhone|iPad|iPod|Android/i.test(navigator.userAgent);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user