mirror of
https://github.com/zadam/trilium.git
synced 2025-12-18 13:24:25 +01:00
style/status bar/note paths: fix an issue pointed by gemini-code-assist
This commit is contained in:
parent
a551dfe4d6
commit
65f425df2c
@ -130,10 +130,6 @@
|
|||||||
font-size: .85em;
|
font-size: .85em;
|
||||||
color: var(--menu-item-icon-color);
|
color: var(--menu-item-icon-color);
|
||||||
}
|
}
|
||||||
|
|
||||||
span:last-of-type > span > a {
|
|
||||||
color: var(--muted-text-color);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@ -142,6 +138,10 @@
|
|||||||
color: currentColor;
|
color: currentColor;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
|
||||||
|
&.basename {
|
||||||
|
color: var(--muted-text-color);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -8,6 +8,7 @@ import NoteLink from "../react/NoteLink";
|
|||||||
import { joinElements } from "../react/react_utils";
|
import { joinElements } from "../react/react_utils";
|
||||||
import { TabContext } from "./ribbon-interface";
|
import { TabContext } from "./ribbon-interface";
|
||||||
import LinkButton from "../react/LinkButton";
|
import LinkButton from "../react/LinkButton";
|
||||||
|
import clsx from "clsx";
|
||||||
|
|
||||||
|
|
||||||
export default function NotePathsTab({ note, hoistedNoteId, notePath }: TabContext) {
|
export default function NotePathsTab({ note, hoistedNoteId, notePath }: TabContext) {
|
||||||
@ -109,8 +110,11 @@ function NotePath({ currentNotePath, notePathRecord }: { currentNotePath?: strin
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<li class={classes}>
|
<li class={classes}>
|
||||||
{joinElements(fullNotePaths.map(notePath => (
|
{joinElements(fullNotePaths.map((notePath, index, arr) => (
|
||||||
<NoteLink key={notePath} notePath={notePath} noPreview />
|
<NoteLink key={notePath}
|
||||||
|
className={clsx({"basename": (index === arr.length - 1)})}
|
||||||
|
notePath={notePath}
|
||||||
|
noPreview />
|
||||||
)), NOTE_PATH_TITLE_SEPARATOR)}
|
)), NOTE_PATH_TITLE_SEPARATOR)}
|
||||||
|
|
||||||
{icons.map(({ icon, title }) => (
|
{icons.map(({ icon, title }) => (
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user