v0.11.1 - fix click post tile will not open post when focused.
This commit is contained in:
parent
dc176f4e83
commit
73dc5464e6
File diff suppressed because one or more lines are too long
2
dist/index.html
vendored
2
dist/index.html
vendored
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
gtag('config', 'G-59HBGP98WR');
|
gtag('config', 'G-59HBGP98WR');
|
||||||
</script>
|
</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">
|
<link rel="stylesheet" crossorigin href="/assets/index-Plu04C2a.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "danbooru-viewer",
|
"name": "danbooru-viewer",
|
||||||
"module": "index.ts",
|
"module": "index.ts",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "0.11.0",
|
"version": "0.11.1",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "bun x vite",
|
"dev": "bun x vite",
|
||||||
"build": "bun x vite build",
|
"build": "bun x vite build",
|
||||||
|
@ -60,7 +60,7 @@ export class $PostTile extends $Container {
|
|||||||
.on('click', () => {
|
.on('click', () => {
|
||||||
if (!detailPanelEnable$.value) return;
|
if (!detailPanelEnable$.value) return;
|
||||||
if (innerWidth <= 800) return $.open(this.post.pathname);
|
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');
|
else this.trigger('$focus');
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user