chore: fix some issues on windows

This commit is contained in:
reya
2024-01-20 10:15:27 +07:00
parent 9fcdac4edb
commit e0250d7f5c
5 changed files with 6 additions and 9 deletions

View File

@@ -72,7 +72,7 @@ export function ColumnHeader({
Refresh
</button>
</DropdownMenu.Item>
{queryKey[0] === "foryou-9998" ? (
{queryKey?.[0] === "foryou-9998" ? (
<DropdownMenu.Item asChild>
<InterestModal queryKey={queryKey} />
</DropdownMenu.Item>

View File

@@ -326,7 +326,7 @@ export function ReplyForm({
setTarget(null);
}}
>
<div className="h-full overflow-y-auto p-3 bg-neutral-100 dark:bg-neutral-900 rounded-xl">
<div className="overflow-y-auto p-3 bg-neutral-100 dark:bg-neutral-900 rounded-xl">
<Editable
key={JSON.stringify(editorValue)}
autoFocus={false}

View File

@@ -10,7 +10,7 @@ export function AppLayout({ platform }: { platform: Platform }) {
<div
className={cn(
"flex h-screen w-screen flex-col",
platform !== "macos" ? "bg-blue-50 dark:bg-blue-950" : "",
platform !== "macos" ? "bg-neutral-50 dark:bg-neutral-950" : "",
)}
>
{platform === "windows" ? (