|
Upgrading from v0.24 to V0.30.0, I can no longer find the collapse settings for notes. How can I use the note collapse feature again? |
Replies: 1 comment 2 replies
|
The feature is still there, but in v0.30 it sits behind a setting that did not exist in v0.24. What changed In v0.24 the feed passed https://github.com/usememos/memos/blob/v0.24.4/web/src/pages/Home.tsx#L52 In v0.30 the whole memo body is wrapped in and The default view state is https://github.com/usememos/memos/blob/v0.30.0/web/src/contexts/ViewContext.tsx#L35 So on a fresh v0.30 install nothing is clamped, at any height. That is why the feature looks gone. How to get it back Open the memo display settings menu (the sliders icon above the feed) and turn on Compact mode: Setting more than one column also forces it on, since grid tiles are always compact. Two follow-up notes The threshold also changed. v0.24 collapsed anything taller than 256px: https://github.com/usememos/memos/blob/v0.24.4/web/src/components/MemoContent/index.tsx#L12-L13 v0.30 only collapses above 420px and shows a 360px preview: https://github.com/usememos/memos/blob/v0.30.0/web/src/components/ClampedSection.tsx#L6-L10 So a memo between 257px and 420px stays open even with compact mode enabled. The detail page passes https://github.com/usememos/memos/blob/v0.30.0/web/src/pages/MemoDetail.tsx#L124 |
The feature is still there, but in v0.30 it sits behind a setting that did not exist in v0.24.
What changed
In v0.24 the feed passed
compactunconditionally, so collapsing was always on:https://github.com/usememos/memos/blob/v0.24.4/web/src/pages/Home.tsx#L52
In v0.30 the whole memo body is wrapped in
ClampedSectionwithenabled={Boolean(compact)}:https://github.com/usememos/memos/blob/v0.30.0/web/src/components/MemoView/components/MemoBody.tsx#L40
and
compactis now derived from the view state instead of being hardcoded:https://github.com/usememos/memos/blob/v0.30.0/web/src/components/PagedMemoList/PagedMemoList.tsx#L144
The default view state is
{ orderByTimeAsc: false, compactMode: …