Enhancement: icons-only bookmarks style (#4384)

This commit is contained in:
shamoon 2024-12-05 15:35:31 -08:00 committed by GitHub
parent c58f59c105
commit cb3248117f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 69 additions and 21 deletions

View file

@ -7,7 +7,13 @@ import ErrorBoundary from "components/errorboundry";
import List from "components/bookmarks/list";
import ResolvedIcon from "components/resolvedicon";
export default function BookmarksGroup({ bookmarks, layout, disableCollapse, groupsInitiallyCollapsed }) {
export default function BookmarksGroup({
bookmarks,
layout,
disableCollapse,
groupsInitiallyCollapsed,
bookmarksStyle,
}) {
const panel = useRef();
useEffect(() => {
@ -64,7 +70,7 @@ export default function BookmarksGroup({ bookmarks, layout, disableCollapse, gro
>
<Disclosure.Panel className="transition-all overflow-hidden duration-300 ease-out" ref={panel} static>
<ErrorBoundary>
<List bookmarks={bookmarks.bookmarks} layout={layout} />
<List bookmarks={bookmarks.bookmarks} layout={layout} bookmarksStyle={bookmarksStyle} />
</ErrorBoundary>
</Disclosure.Panel>
</Transition>