Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

fix: empty state display issue with resourceList style Grid (#2018)

Ajay Kumbhare560412910534
diff --git a/web/src/pages/ResourcesDashboard.tsx b/web/src/pages/ResourcesDashboard.tsx
index dc4ec4d4a..8f0726b72 100644
--- a/web/src/pages/ResourcesDashboard.tsx
+++ b/web/src/pages/ResourcesDashboard.tsx
@@ -286,7 +286,7 @@ const ResourcesDashboard = () => {
) : (
<div
className={
- listStyle === "TABLE"
+ listStyle === "TABLE" || resourceList.length === 0
? "flex flex-col justify-start items-start w-full"
: "w-full h-auto grid grid-cols-2 md:grid-cols-4 md:px-6 gap-6"
}