From e0250d7f5c14839ef970b57b15c559d7838ebc71 Mon Sep 17 00:00:00 2001 From: reya <123083837+reyamir@users.noreply.github.com> Date: Sat, 20 Jan 2024 10:15:27 +0700 Subject: [PATCH] chore: fix some issues on windows --- packages/ark/src/components/column/header.tsx | 2 +- packages/ui/src/editor/replyForm.tsx | 2 +- packages/ui/src/layouts/app.tsx | 2 +- src-tauri/tauri.linux.conf.json | 3 ++- src-tauri/tauri.windows.conf.json | 6 +----- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/packages/ark/src/components/column/header.tsx b/packages/ark/src/components/column/header.tsx index 7d9846c9..ccc8971c 100644 --- a/packages/ark/src/components/column/header.tsx +++ b/packages/ark/src/components/column/header.tsx @@ -72,7 +72,7 @@ export function ColumnHeader({ Refresh - {queryKey[0] === "foryou-9998" ? ( + {queryKey?.[0] === "foryou-9998" ? ( diff --git a/packages/ui/src/editor/replyForm.tsx b/packages/ui/src/editor/replyForm.tsx index 2340cf22..8747538e 100644 --- a/packages/ui/src/editor/replyForm.tsx +++ b/packages/ui/src/editor/replyForm.tsx @@ -326,7 +326,7 @@ export function ReplyForm({ setTarget(null); }} > -
+
{platform === "windows" ? ( diff --git a/src-tauri/tauri.linux.conf.json b/src-tauri/tauri.linux.conf.json index a60ac0e1..229bd3cc 100644 --- a/src-tauri/tauri.linux.conf.json +++ b/src-tauri/tauri.linux.conf.json @@ -11,7 +11,8 @@ "title": "Lume", "center": true, "fullscreen": false, - "fileDropEnabled": true + "fileDropEnabled": true, + "decorations": true } ] } diff --git a/src-tauri/tauri.windows.conf.json b/src-tauri/tauri.windows.conf.json index 2ce30690..8472ef4a 100644 --- a/src-tauri/tauri.windows.conf.json +++ b/src-tauri/tauri.windows.conf.json @@ -13,11 +13,7 @@ "fullscreen": false, "hiddenTitle": true, "fileDropEnabled": true, - "decorations": false, - "transparent": true, - "windowEffects": { - "effects": ["micaLight", "micaDark"] - } + "decorations": false } ] }