chore(react/collections): full-height rendering for non-legacy

This commit is contained in:
Elian Doran
2025-08-30 19:24:32 +03:00
parent c49e84efc6
commit cc7edbe3a7
2 changed files with 2 additions and 11 deletions

View File

@@ -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)}