mirror of
https://github.com/signynt/virtual-content.git
synced 2026-07-22 12:40:27 +00:00
Fixed reading view
This commit is contained in:
parent
3633ad37fb
commit
3be323fdee
1 changed files with 1 additions and 3 deletions
4
main.ts
4
main.ts
|
|
@ -52,7 +52,7 @@ export default class DynamicFooterPlugin extends Plugin {
|
|||
}
|
||||
|
||||
private async injectFooterToPreview(view: MarkdownView) {
|
||||
const container = view.containerEl.querySelector('.markdown-preview-view');
|
||||
const container = view.containerEl.querySelector('.mod-footer');
|
||||
if (!container) return;
|
||||
|
||||
// Remove existing footer if any
|
||||
|
|
@ -74,8 +74,6 @@ export default class DynamicFooterPlugin extends Plugin {
|
|||
this
|
||||
);
|
||||
|
||||
// Get the content container and append the footer at the bottom
|
||||
const content = container.querySelector('.cm-sizer');
|
||||
container.appendChild(footerDiv);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue