We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b80ad4 commit a781c2bCopy full SHA for a781c2b
1 file changed
src/site/ehentai/index.tsx
@@ -188,7 +188,9 @@ import { tagLint } from './tagLint';
188
const resizeObserver = new ResizeObserver(() => {
189
// 只在超出正常高度时才使用 css 限制,避免和其他脚本(如:EhAria2下载助手)冲突
190
Reflect.deleteProperty(sidebarDom.dataset, 'long');
191
- if (sidebarDom.scrollHeight > 352) sidebarDom.dataset.long = '';
+ const lastNode = querySelector('#gd5 p:last-child')!;
192
+ if (lastNode.offsetTop + lastNode.offsetHeight > 352)
193
+ sidebarDom.dataset.long = '';
194
});
195
resizeObserver.observe(sidebarDom);
196
useStyle(`
0 commit comments