v0.10.2 - fix focus

This commit is contained in:
defaultkavy 2024-10-18 16:46:26 +08:00
parent b5bd8aa736
commit 9f0add5b1c
Signed by: defaultkavy
GPG Key ID: DFBB22C4E69D7826
5 changed files with 5 additions and 4 deletions

File diff suppressed because one or more lines are too long

1
dist/assets/index-CluJD7uC.js vendored Normal file

File diff suppressed because one or more lines are too long

2
dist/index.html vendored
View File

@ -16,7 +16,7 @@
gtag('config', 'G-59HBGP98WR'); gtag('config', 'G-59HBGP98WR');
</script> </script>
<script type="module" crossorigin src="/assets/index-BWVK_Osd.js"></script> <script type="module" crossorigin src="/assets/index-CluJD7uC.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BgVVzy-z.css"> <link rel="stylesheet" crossorigin href="/assets/index-BgVVzy-z.css">
</head> </head>
<body> <body>

View File

@ -2,7 +2,7 @@
"name": "danbooru-viewer", "name": "danbooru-viewer",
"module": "index.ts", "module": "index.ts",
"type": "module", "type": "module",
"version": "0.10.1", "version": "0.10.2",
"scripts": { "scripts": {
"dev": "bun x vite", "dev": "bun x vite",
"build": "bun x vite build", "build": "bun x vite build",

View File

@ -101,6 +101,7 @@ export class $PostGrid extends $Layout<$PostGridEventMap> {
this.posts.clear(); this.posts.clear();
this.$posts.clear(); this.$posts.clear();
this.orderMap.clear(); this.orderMap.clear();
this.$focus.layer(100).removeAll();
this.animate({opacity: [1, 0]}, {duration: 300, easing: 'ease'}, () => this.clear().render()) this.animate({opacity: [1, 0]}, {duration: 300, easing: 'ease'}, () => this.clear().render())
return this; return this;
} }