mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 20:06:08 +01:00
fixes for link map
This commit is contained in:
@@ -26,10 +26,14 @@ class LinkMapWidget extends StandardWidget {
|
||||
|
||||
const $linkMapContainer = this.$body.find('.link-map-container');
|
||||
$linkMapContainer.attr("id", "link-map-container-" + linkMapContainerIdCtr++);
|
||||
$linkMapContainer.css("height", "300px");
|
||||
|
||||
const LinkMapServiceClass = (await import('../services/link_map.js')).default;
|
||||
|
||||
const linkMapService = new LinkMapServiceClass(this.ctx.note, $linkMapContainer);
|
||||
const linkMapService = new LinkMapServiceClass(this.ctx.note, $linkMapContainer, {
|
||||
maxDepth: 1,
|
||||
zoom: 0.7
|
||||
});
|
||||
|
||||
await linkMapService.render();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user