Skip to content

Commit

Permalink
fix(Path View): 🐛 Add trailDiv before markdown-preview-sizer instead …
Browse files Browse the repository at this point in the history
…of prepending to markdown-preview-view

This should clear up the competing behaviour with Embedded Note Titles
  • Loading branch information
SkepticMystic committed Aug 28, 2021
1 parent 5ea29ac commit bc51e85
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -701,17 +701,15 @@ export default class BreadcrumbsPlugin extends Plugin {
}

const trailDiv = createDiv({
cls: `breadcrumbs-trail ${
settings.respectReadableLineLength
? "is-readable-line-width markdown-preview-sizer markdown-preview-section"
: ""
}`,
cls: `breadcrumbs-trail ${settings.respectReadableLineLength
? "is-readable-line-width markdown-preview-sizer markdown-preview-section"
: ""
}`,
});
// previewView.prepend(trailDiv)

this.visited.push([currFile.path, trailDiv]);

previewView.prepend(trailDiv);
previewView.querySelector('.markdown-preview-sizer').before(trailDiv);

trailDiv.empty();

Expand Down

0 comments on commit bc51e85

Please sign in to comment.