chore: remove check window decorations (#966)

* chore: remove check window decorations

* chore: add skip button

* chore: key add index
This commit is contained in:
BiggerRain
2025-11-05 15:13:26 +08:00
committed by GitHub
parent 61860b400f
commit 6067fa7029
3 changed files with 7 additions and 4 deletions

View File

@@ -65,15 +65,18 @@
"height": 260,
"minHeight": 260,
"center": false,
"decorations": false,
"transparent": true,
"maximizable": false,
"skipTaskbar": false,
"dragDropEnabled": false,
"hiddenTitle": true,
"visible": false,
"shadow": false,
"windowEffects": {
"effects": ["sidebar"],
"state": "active"
"state": "active",
"radius": 7
}
}
],

View File

@@ -172,9 +172,9 @@ function DropdownList({
/>
)}
{items.map((hit) => {
{items.map((hit, idx) => {
const currentIndex = hit.document.index ?? 0;
const itemKey = `${sourceName}-${hit.document.id ?? currentIndex}`;
const itemKey = `${sourceName}-${hit.document.id ?? currentIndex}-${idx}`;
return (
<DropdownListItem

View File

@@ -241,7 +241,7 @@ const UpdateApp = ({ isCheckPage }: UpdateAppProps) => {
)}
</Button>
{!isCheckPage && updateInfo && isOptional && (
{updateInfo && isOptional && (
<div
className={clsx("text-xs text-[#999]", cursorClassName)}
onClick={handleSkip}