mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 06:45:49 +01:00
link map tweaks
This commit is contained in:
@@ -33,6 +33,9 @@ export default class SidebarOptions {
|
||||
}
|
||||
|
||||
async optionsLoaded(options) {
|
||||
this.$widgetsEnabled.empty();
|
||||
this.$widgetsDisabled.empty();
|
||||
|
||||
this.$sidebarMinWidth.val(options.sidebarMinWidth);
|
||||
this.$sidebarWidthPercent.val(options.sidebarWidthPercent);
|
||||
|
||||
|
||||
@@ -65,7 +65,7 @@ export default class LinkMap {
|
||||
graph,
|
||||
// param explanation here: https://github.com/dhotson/springy/issues/58
|
||||
400.0, // Spring stiffness
|
||||
200.0, // Node repulsion
|
||||
400.0, // Node repulsion
|
||||
0.15 // Damping
|
||||
);
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import StandardWidget from "./standard_widget.js";
|
||||
let linkMapContainerIdCtr = 1;
|
||||
|
||||
const TPL = `
|
||||
<div style="outline: none; overflow: hidden;">
|
||||
<div class="link-map-widget">
|
||||
<div class="link-map-container"></div>
|
||||
</div>
|
||||
`;
|
||||
@@ -32,7 +32,7 @@ class LinkMapWidget extends StandardWidget {
|
||||
|
||||
this.linkMapService = new LinkMapServiceClass(this.ctx.note, $linkMapContainer, {
|
||||
maxDepth: 1,
|
||||
zoom: 0.8
|
||||
zoom: 0.6
|
||||
});
|
||||
|
||||
await this.linkMapService.render();
|
||||
|
||||
@@ -366,7 +366,7 @@ body {
|
||||
width: 99%; /* to give minimal right margin */
|
||||
background-color: var(--button-background-color);
|
||||
border-color: var(--button-border-color);
|
||||
border-width: 1px 0 1px 0;
|
||||
border-width: 1px;
|
||||
border-radius: 4px;
|
||||
border-style: solid;
|
||||
display: flex;
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
font-size: 11px;
|
||||
width: auto;
|
||||
height: auto;
|
||||
max-width: 150px;
|
||||
max-width: 200px;
|
||||
min-width: 120px;
|
||||
max-height: 100px;
|
||||
overflow: hidden;
|
||||
@@ -43,4 +43,13 @@
|
||||
.link-map-container .jsplumb-connection-hover path {
|
||||
stroke-width: 2 !important;
|
||||
stroke: var(--main-text-color);
|
||||
}
|
||||
|
||||
.link-map-widget {
|
||||
outline: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.link-map-widget .note-box .title {
|
||||
font-size: 16px !important;
|
||||
}
|
||||
Reference in New Issue
Block a user