Typing and Density settings

This commit is contained in:
Sean Edmunds
2025-04-21 17:27:26 -05:00
parent d9712974d9
commit c3495bd674
21 changed files with 531 additions and 343 deletions

View File

@@ -12,7 +12,7 @@ function Links({ contentType }: { contentType: [string] }) {
const { data: groupData, isFetched: groupsIsFetched } = useQueryAPI({
endpoint: 'api/categories',
});
const { isMobile, bookmarkSort } = useCommonHooks();
const { isMobile, bookmarkSort, bookmarkDensity } = useCommonHooks();
const [bookmarkData, setBookmarkData] = useState<Bookmark[]>([]);
const [groups, setGroups] = useState<BookmarkGroup[]>([]);
@@ -62,7 +62,9 @@ function Links({ contentType }: { contentType: [string] }) {
flexWrap: 'nowrap',
gridColumnGap: '20px',
gridRowGap: '0px',
gridTemplateColumns: isMobile ? '1fr 1fr' : '1fr 1fr 1fr 1fr 1fr',
gridTemplateColumns: isMobile
? '1fr 1fr'
: `repeat(${bookmarkDensity}, 1fr)`,
gridTemplateRows: 'auto',
}}
>