Skip to content

Commit

Permalink
Hide sidebar on mobile when creating new note
Browse files Browse the repository at this point in the history
  • Loading branch information
ellatrix committed Jul 24, 2024
1 parent 86e129d commit b23bd6b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,9 @@ export default function Frame({ selectedFolderURL, setSelectedFolderURL }) {
const newItem = { id: uuidv4(), tags: [] };
setItems([newItem, ...items]);
setSelection([newItem.id]);
if (!isWide) {
setIsSidebarOpen(false);
}
}}
/>
</ToolbarGroup>
Expand Down

0 comments on commit b23bd6b

Please sign in to comment.