mirror of
https://github.com/jakejarvis/hoot.git
synced 2025-10-18 20:14:25 -04:00
Enhance BrowserWindow and Screenshot components: add select-none class and disable dragging
This commit is contained in:
@@ -14,7 +14,7 @@ export function BrowserWindow({
|
||||
return (
|
||||
<div
|
||||
className={cn(
|
||||
"inline-block overflow-hidden rounded-lg border",
|
||||
"inline-block select-none overflow-hidden rounded-lg border",
|
||||
className,
|
||||
)}
|
||||
>
|
||||
@@ -29,7 +29,7 @@ export function BrowserWindow({
|
||||
|
||||
{/* Address Bar */}
|
||||
<div className="flex h-3.5 flex-1 items-center rounded-sm bg-zinc-200 px-2 dark:bg-zinc-800">
|
||||
<span className="inline-block w-full select-none truncate text-center text-[8px] text-zinc-500 dark:text-zinc-400">
|
||||
<span className="inline-block w-full truncate text-center text-[8px] text-zinc-500 dark:text-zinc-400">
|
||||
{url}
|
||||
</span>
|
||||
</div>
|
||||
|
@@ -52,6 +52,7 @@ export function Screenshot({
|
||||
)}
|
||||
unoptimized
|
||||
priority={false}
|
||||
draggable={false}
|
||||
/>
|
||||
) : (
|
||||
<div
|
||||
|
Reference in New Issue
Block a user