v0.11.1 - fix click post tile will not open post when focused.

This commit is contained in:
defaultkavy 2024-10-21 09:15:04 +08:00
parent dc176f4e83
commit 73dc5464e6
Signed by: defaultkavy
GPG Key ID: DFBB22C4E69D7826
4 changed files with 4 additions and 4 deletions

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');
</script>
<script type="module" crossorigin src="/assets/index-DAA98Qle.js"></script>
<script type="module" crossorigin src="/assets/index-BGIOFgx0.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-Plu04C2a.css">
</head>
<body>

View File

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

View File

@ -60,7 +60,7 @@ export class $PostTile extends $Container {
.on('click', () => {
if (!detailPanelEnable$.value) return;
if (innerWidth <= 800) return $.open(this.post.pathname);
if ($(document.activeElement) === this) $.open(this.post.pathname);
if (this.attribute('focus') === '') $.open(this.post.pathname);
else this.trigger('$focus');
})
}