mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 21:36:05 +01:00
chore(react/collections): full-height rendering for non-legacy
This commit is contained in:
@@ -17,9 +17,10 @@ export default function NoteList({ note: providedNote, highlightedTokens }: Note
|
||||
const viewType = useNoteViewType(note);
|
||||
const noteIds = useNoteIds(note, viewType);
|
||||
const isEnabled = (note && !!viewType);
|
||||
const isFullHeight = (viewType !== "list" && viewType !== "grid");
|
||||
|
||||
return (
|
||||
<div className="note-list-widget">
|
||||
<div className={`note-list-widget ${isFullHeight ? "full-height" : ""}`}>
|
||||
{isEnabled && (
|
||||
<div className="note-list-widget-content">
|
||||
{getComponentByViewType(note, noteIds, viewType, highlightedTokens)}
|
||||
|
||||
Reference in New Issue
Block a user