(READ ONLY) Margin is an open annotation layer for the internet. Powered by the AT Protocol. margin.at
extension web atproto comments
99
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix not being able to delete an item from a collection

scanash00 d0c86401 287fe8a4

+17 -6
+1 -1
web/src/api/client.ts
··· 173 173 : undefined, 174 174 addedBy: raw.creator || raw.author, 175 175 createdAt: raw.created || raw.createdAt || new Date().toISOString(), 176 - collectionItemUri: raw.uri, 176 + collectionItemUri: raw.id || raw.uri, 177 177 }; 178 178 } 179 179
+13 -3
web/src/components/navigation/Sidebar.tsx
··· 41 41 }, [user]); 42 42 43 43 const publicNavItems = [ 44 - { icon: Home, label: "Feed", href: "/home" }, 45 - { icon: Bookmark, label: "Bookmarks", href: "/bookmarks" }, 46 - { icon: PenTool, label: "Highlights", href: "/highlights" }, 44 + { icon: Home, label: "Feed", href: "/home", badge: undefined }, 45 + { 46 + icon: Bookmark, 47 + label: "Bookmarks", 48 + href: "/bookmarks", 49 + badge: undefined, 50 + }, 51 + { 52 + icon: PenTool, 53 + label: "Highlights", 54 + href: "/highlights", 55 + badge: undefined, 56 + }, 47 57 ]; 48 58 49 59 const authNavItems = [
+3 -2
web/src/views/collections/CollectionDetail.tsx
··· 178 178 <Card item={item} hideShare /> 179 179 {isOwner && item.collectionItemUri && ( 180 180 <button 181 - className="absolute top-3 right-3 p-1.5 bg-white/90 dark:bg-surface-800/90 backdrop-blur text-surface-400 dark:text-surface-500 hover:text-red-500 dark:hover:text-red-400 rounded-lg shadow-sm opacity-0 group-hover:opacity-100 transition-all" 181 + className="absolute top-3 right-3 p-1.5 bg-white/90 dark:bg-surface-800/90 backdrop-blur text-surface-400 dark:text-surface-500 hover:text-red-500 dark:hover:text-red-400 rounded-lg shadow-sm transition-all" 182 182 onClick={() => handleRemoveItem(item)} 183 + title="Remove from collection" 183 184 > 184 - <Trash2 size={14} /> 185 + <Trash2 size={16} /> 185 186 </button> 186 187 )} 187 188 </div>