1
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:
2025-10-02 20:46:15 -04:00
parent 4d49163d12
commit a5ea9cd546
2 changed files with 3 additions and 2 deletions

View File

@@ -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>

View File

@@ -52,6 +52,7 @@ export function Screenshot({
)}
unoptimized
priority={false}
draggable={false}
/>
) : (
<div