mirror of
https://github.com/zadam/trilium.git
synced 2026-02-21 05:04:24 +01:00
ui/grid view: fix some issues
This commit is contained in:
parent
8b5d88bf2b
commit
b4cd66db50
@ -315,7 +315,7 @@
|
||||
|
||||
#left-pane .fancytree-node.tinted,
|
||||
.nested-note-list-item.use-note-color,
|
||||
.note-book-card.use-note-color {
|
||||
.note-book-card .note-book-header.use-note-color {
|
||||
--custom-color: var(--dark-theme-custom-color);
|
||||
|
||||
/* The background color of the active item in the note tree.
|
||||
@ -367,7 +367,7 @@ body .todo-list input[type="checkbox"]:not(:checked):before {
|
||||
.note-split.with-hue,
|
||||
.quick-edit-dialog-wrapper.with-hue,
|
||||
.nested-note-list-item.with-hue,
|
||||
.note-book-card.with-hue {
|
||||
.note-book-card .note-book-header.with-hue {
|
||||
--note-icon-custom-background-color: hsl(var(--custom-color-hue), 15.8%, 30.9%);
|
||||
--note-icon-custom-color: hsl(var(--custom-color-hue), 100%, 76.5%);
|
||||
--note-icon-hover-custom-background-color: hsl(var(--custom-color-hue), 28.3%, 36.7%);
|
||||
|
||||
@ -309,7 +309,7 @@
|
||||
|
||||
#left-pane .fancytree-node.tinted,
|
||||
.nested-note-list-item.use-note-color,
|
||||
.note-book-card.use-note-color {
|
||||
.note-book-card .note-book-header.use-note-color {
|
||||
--custom-color: var(--light-theme-custom-color);
|
||||
|
||||
/* The background color of the active item in the note tree.
|
||||
@ -337,7 +337,7 @@
|
||||
.note-split.with-hue,
|
||||
.quick-edit-dialog-wrapper.with-hue,
|
||||
.nested-note-list-item.with-hue,
|
||||
.note-book-card.with-hue {
|
||||
.note-book-card .note-book-header.with-hue {
|
||||
--note-icon-custom-background-color: hsl(var(--custom-color-hue), 44.5%, 43.1%);
|
||||
--note-icon-custom-color: hsl(var(--custom-color-hue), 91.3%, 91%);
|
||||
--note-icon-hover-custom-background-color: hsl(var(--custom-color-hue), 55.1%, 50.2%);
|
||||
|
||||
@ -21,6 +21,7 @@
|
||||
|
||||
.tn-icon {
|
||||
font-size: 1.2em;
|
||||
margin-inline-end: 8px;
|
||||
}
|
||||
|
||||
.note-book-title {
|
||||
@ -36,8 +37,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
.note-book-card.use-note-color,
|
||||
.note-book-card.use-note-color {
|
||||
.note-book-card-note-color,
|
||||
.note-book-header.use-note-color {
|
||||
span.tn-icon + span,
|
||||
.tn-icon,
|
||||
.rendered-note-attributes {
|
||||
@ -155,7 +156,6 @@
|
||||
}
|
||||
|
||||
.tn-icon {
|
||||
margin-inline-end: 8px;
|
||||
color: var(--note-list-view-icon-color);
|
||||
}
|
||||
|
||||
|
||||
@ -160,14 +160,14 @@ function GridNoteCard(props: GridNoteCardProps) {
|
||||
const notePath = getNotePath(props.parentNote, props.note);
|
||||
|
||||
return (
|
||||
<div className={clsx("note-book-card", "no-tooltip-preview", "block-link", props.note.getColorClass(), {
|
||||
<div className={clsx("note-book-card", "no-tooltip-preview", "block-link", {
|
||||
"archived": props.note.isArchived
|
||||
})}
|
||||
data-href={`#${notePath}`}
|
||||
data-note-id={props.note.noteId}
|
||||
onClick={(e) => link.goToLink(e)}
|
||||
>
|
||||
<h5 className="note-book-header">
|
||||
<h5 className={clsx("note-book-header", props.note.getColorClass())}>
|
||||
<Icon className="note-icon" icon={props.note.getIcon()} />
|
||||
<NoteLink className="note-book-title"
|
||||
notePath={notePath}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user