Skip to content

Commit fdf41eb

Browse files
authored
Merge branch 'main' into feat/multi-user-support
2 parents cbc816c + d4b05fa commit fdf41eb

File tree

39 files changed

+13280
-157
lines changed

39 files changed

+13280
-157
lines changed

apps/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"@triliumnext/commons": "workspace:*",
3333
"@triliumnext/highlightjs": "workspace:*",
3434
"@triliumnext/share-theme": "workspace:*",
35+
"@triliumnext/split.js": "workspace:*",
3536
"autocomplete.js": "0.38.1",
3637
"bootstrap": "5.3.8",
3738
"boxicons": "2.1.4",
@@ -60,7 +61,6 @@
6061
"preact": "10.27.2",
6162
"react-i18next": "16.1.2",
6263
"reveal.js": "5.2.1",
63-
"split.js": "1.6.5",
6464
"svg-pan-zoom": "3.6.2",
6565
"tabulator-tables": "6.3.1",
6666
"vanilla-js-wheel-zoom": "9.0.4"

apps/client/src/services/resizer.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import options from "./options.js";
2-
import Split from "split.js"
2+
import Split from "@triliumnext/split.js";
33

44
export const DEFAULT_GUTTER_SIZE = 5;
55

@@ -46,6 +46,7 @@ function setupLeftPaneResizer(leftPaneVisible: boolean) {
4646
sizes: [leftPaneWidth, restPaneWidth],
4747
gutterSize: DEFAULT_GUTTER_SIZE,
4848
minSize: [150, 300],
49+
rtl: glob.isRtl,
4950
onDragEnd: (sizes) => {
5051
leftPaneWidth = Math.round(sizes[0]);
5152
options.save("leftPaneWidth", Math.round(sizes[0]));
@@ -79,6 +80,7 @@ function setupRightPaneResizer() {
7980
sizes: [100 - rightPaneWidth, rightPaneWidth],
8081
gutterSize: DEFAULT_GUTTER_SIZE,
8182
minSize: [300, 180],
83+
rtl: glob.isRtl,
8284
onDragEnd: (sizes) => {
8385
rightPaneWidth = Math.round(sizes[1]);
8486
options.save("rightPaneWidth", Math.round(sizes[1]));
@@ -99,7 +101,7 @@ function setupNoteSplitResizer(ntxIds: string[]) {
99101
let targetNtxIds: string[] | undefined;
100102
for (const ntxId of ntxIds) {
101103
targetNtxIds = findKeyByNtxId(ntxId);
102-
if (targetNtxIds) break;
104+
if (targetNtxIds) break;
103105
}
104106

105107
if (targetNtxIds) {
@@ -154,6 +156,7 @@ function createSplitInstance(targetNtxIds: string[]) {
154156
const splitPanels = [...splitNoteContainer.querySelectorAll<HTMLElement>(':scope > .note-split')]
155157
.filter(el => targetNtxIds.includes(el.getAttribute('data-ntx-id') ?? ""));
156158
const splitInstance = Split(splitPanels, {
159+
rtl: glob.isRtl,
157160
gutterSize: DEFAULT_GUTTER_SIZE,
158161
minSize: 150,
159162
});

apps/client/src/services/tree.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import froca from "./froca.js";
44
import hoistedNoteService from "./hoisted_note.js";
55
import appContext from "../components/app_context.js";
66

7-
/**
8-
* @returns {string|null}
9-
*/
107
async function resolveNotePath(notePath: string, hoistedNoteId = "root") {
118
const runPath = await resolveNotePathToSegments(notePath, hoistedNoteId);
129

apps/client/src/stylesheets/theme-dark.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ body ::-webkit-calendar-picker-indicator {
8686
--custom-color: var(--dark-theme-custom-color);
8787
}
8888

89+
.reference-link,
90+
.ck-content a.reference-link > span {
91+
color: var(--dark-theme-custom-color, inherit);
92+
}
93+
8994
.excalidraw.theme--dark {
9095
--theme-filter: invert(80%) hue-rotate(180deg) !important;
9196
}
@@ -101,3 +106,4 @@ body .todo-list input[type="checkbox"]:not(:checked):before {
101106
.ck-content pre {
102107
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
103108
}
109+

apps/client/src/stylesheets/theme-light.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,9 @@ html {
8484

8585
#left-pane .fancytree-node.tinted {
8686
--custom-color: var(--light-theme-custom-color);
87+
}
88+
89+
.reference-link,
90+
.ck-content a.reference-link > span {
91+
color: var(--light-theme-custom-color, inherit);
8792
}

apps/client/src/stylesheets/theme-next-dark.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,11 @@
277277
--custom-bg-color: hsl(var(--custom-color-hue), 20%, 33%, 0.4);
278278
}
279279

280+
.reference-link,
281+
.ck-content a.reference-link > span {
282+
color: var(--dark-theme-custom-color, inherit);
283+
}
284+
280285
body ::-webkit-calendar-picker-indicator {
281286
filter: invert(1);
282287
}

apps/client/src/stylesheets/theme-next/dialogs.css

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@ div.tn-tool-dialog {
392392
}
393393

394394
.delete-notes-list .note-path {
395-
padding-inline-end: 8px;
395+
padding-inline-start: 8px;
396+
color: var(--muted-text-color)
396397
}
397398

398399
/*

apps/client/src/stylesheets/theme-next/notes/text.css

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,4 +666,17 @@ html .note-detail-editable-text :not(figure, .include-note, hr):first-child {
666666
.ck-content .table > figcaption {
667667
background: var(--accented-background-color);
668668
color: var(--main-text-color);
669+
}
670+
671+
/* Reference link */
672+
673+
.ck-content a.reference-link,
674+
.ck-content a.reference-link:hover {
675+
/* Apply underline only to the span inside the link so it can follow the
676+
* target note's user defined color */
677+
text-decoration: none;
678+
}
679+
680+
.ck-content a.reference-link > span {
681+
text-decoration: underline;
669682
}

0 commit comments

Comments
 (0)