mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-22 12:11:41 +08:00
feat(i18n): translate note map buttons
This commit is contained in:
parent
947a7d1ad4
commit
eb7164528a
@ -16,14 +16,14 @@ const TPL = `<div class="note-map-widget" style="position: relative;">
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-type-switcher {
|
.map-type-switcher {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
left: 10px;
|
left: 10px;
|
||||||
z-index: 10; /* should be below dropdown (note actions) */
|
z-index: 10; /* should be below dropdown (note actions) */
|
||||||
}
|
}
|
||||||
|
|
||||||
.map-type-switcher button.bx {
|
.map-type-switcher button.bx {
|
||||||
font-size: 130%;
|
font-size: 130%;
|
||||||
padding: 1px 10px 1px 10px;
|
padding: 1px 10px 1px 10px;
|
||||||
@ -31,8 +31,8 @@ const TPL = `<div class="note-map-widget" style="position: relative;">
|
|||||||
|
|
||||||
/* Style Ui Element to Drag Nodes */
|
/* Style Ui Element to Drag Nodes */
|
||||||
.fixnodes-type-switcher {
|
.fixnodes-type-switcher {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 10px;
|
top: 10px;
|
||||||
left: 45%;
|
left: 45%;
|
||||||
z-index: 10; /* should be below dropdown (note actions) */
|
z-index: 10; /* should be below dropdown (note actions) */
|
||||||
border-radius:0.2rem;
|
border-radius:0.2rem;
|
||||||
@ -40,13 +40,13 @@ const TPL = `<div class="note-map-widget" style="position: relative;">
|
|||||||
|
|
||||||
/* Start of styling the slider */
|
/* Start of styling the slider */
|
||||||
input[type="range"] {
|
input[type="range"] {
|
||||||
|
|
||||||
/* removing default appearance */
|
/* removing default appearance */
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
margin-left: 15px;
|
margin-left: 15px;
|
||||||
width:50%
|
width:50%
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -63,7 +63,7 @@ const TPL = `<div class="note-map-widget" style="position: relative;">
|
|||||||
input[type="range"]::-webkit-slider-thumb {
|
input[type="range"]::-webkit-slider-thumb {
|
||||||
/* removing default appearance */
|
/* removing default appearance */
|
||||||
-webkit-appearance: none;
|
-webkit-appearance: none;
|
||||||
appearance: none;
|
appearance: none;
|
||||||
/* creating a custom design */
|
/* creating a custom design */
|
||||||
height: 15px;
|
height: 15px;
|
||||||
width: 15px;
|
width: 15px;
|
||||||
@ -74,7 +74,7 @@ const TPL = `<div class="note-map-widget" style="position: relative;">
|
|||||||
/* End of styling the slider */
|
/* End of styling the slider */
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="btn-group btn-group-sm map-type-switcher" role="group">
|
<div class="btn-group btn-group-sm map-type-switcher" role="group">
|
||||||
<button type="button" class="btn bx bx-network-chart" title="${t("note-map.button-link-map")}" data-type="link"></button>
|
<button type="button" class="btn bx bx-network-chart" title="${t("note-map.button-link-map")}" data-type="link"></button>
|
||||||
<button type="button" class="btn bx bx-sitemap" title="${t("note-map.button-tree-map")}" data-type="tree"></button>
|
<button type="button" class="btn bx bx-sitemap" title="${t("note-map.button-tree-map")}" data-type="tree"></button>
|
||||||
@ -83,9 +83,9 @@ const TPL = `<div class="note-map-widget" style="position: relative;">
|
|||||||
<! UI for dragging Notes and link force >
|
<! UI for dragging Notes and link force >
|
||||||
|
|
||||||
<div class=" btn-group-sm fixnodes-type-switcher" role="group">
|
<div class=" btn-group-sm fixnodes-type-switcher" role="group">
|
||||||
<button type="button" class="btn bx bx-expand" title="Fixation" data-type="moveable"></button>
|
<button type="button" class="btn bx bx-expand" title="${t("note_map.fix-nodes")}" data-type="moveable"></button>
|
||||||
<input type="range" class=" slider" min="1" title="Link distance" max="100" value="40" >
|
<input type="range" class=" slider" min="1" title="${t("note_map.link-distance")}" max="100" value="40" >
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="style-resolver"></div>
|
<div class="style-resolver"></div>
|
||||||
@ -180,7 +180,7 @@ export default class NoteMapWidget extends NoteContextAwareWidget {
|
|||||||
hoverNode = node || null;
|
hoverNode = node || null;
|
||||||
highlightLinks.clear();
|
highlightLinks.clear();
|
||||||
})
|
})
|
||||||
|
|
||||||
// set link width to immitate a highlight effekt. Checking the condition if any links are saved in the previous defined set highlightlinks
|
// set link width to immitate a highlight effekt. Checking the condition if any links are saved in the previous defined set highlightlinks
|
||||||
.linkWidth(link => (highlightLinks.has(link) ? 3 : 0.4))
|
.linkWidth(link => (highlightLinks.has(link) ? 3 : 0.4))
|
||||||
.linkColor(link => (highlightLinks.has(link) ? 'white' : this.css.mutedTextColor))
|
.linkColor(link => (highlightLinks.has(link) ? 'white' : this.css.mutedTextColor))
|
||||||
|
@ -795,7 +795,9 @@
|
|||||||
"note_map": {
|
"note_map": {
|
||||||
"open_full": "Expand to full",
|
"open_full": "Expand to full",
|
||||||
"collapse": "Collapse to normal size",
|
"collapse": "Collapse to normal size",
|
||||||
"title": "Note Map"
|
"title": "Note Map",
|
||||||
|
"fix-nodes": "Fix nodes",
|
||||||
|
"link-distance": "Link distance"
|
||||||
},
|
},
|
||||||
"note_paths": {
|
"note_paths": {
|
||||||
"title": "Note Paths",
|
"title": "Note Paths",
|
||||||
|
@ -851,7 +851,9 @@
|
|||||||
"note_map": {
|
"note_map": {
|
||||||
"collapse": "Micșorează la dimensiunea normală",
|
"collapse": "Micșorează la dimensiunea normală",
|
||||||
"open_full": "Expandează la maximum",
|
"open_full": "Expandează la maximum",
|
||||||
"title": "Harta notițelor"
|
"title": "Harta notițelor",
|
||||||
|
"fix-nodes": "Fixează nodurile",
|
||||||
|
"link-distance": "Distanța dintre legături"
|
||||||
},
|
},
|
||||||
"note_paths": {
|
"note_paths": {
|
||||||
"archived": "Arhivat",
|
"archived": "Arhivat",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user