Style updates

This commit is contained in:
Sean Edmunds
2025-06-10 16:30:59 -05:00
parent a148335284
commit fb70df76f1
5 changed files with 45 additions and 43 deletions

View File

@@ -12,7 +12,7 @@ function Bookmarks({ contentType }: { contentType: string[] }) {
const { data: groupData, isFetched: groupsIsFetched } = useQueryAPI({
endpoint: 'api/bookmarkCategories',
});
const { isMobile, bookmarkSort, bookmarkDensity } = useCommonHooks();
const { bookmarkSort, bookmarkDensity } = useCommonHooks();
const [bookmarks, setBookmarks] = useState<Bookmark[]>([]);
const [groups, setGroups] = useState<BookmarkGroup[]>([]);
@@ -38,13 +38,11 @@ function Bookmarks({ contentType }: { contentType: string[] }) {
if (a.id && b.id) {
return a.id < b.id ? 1 : -1;
}
return -1;
case 'Oldest':
if (a.id && b.id) {
return a.id > b.id ? 1 : -1;
}
return -1;
case 'Custom':
return a.categoryIndex > b.categoryIndex ? 1 : -1;
@@ -70,9 +68,7 @@ function Bookmarks({ contentType }: { contentType: string[] }) {
flexWrap: 'nowrap',
gridColumnGap: '20px',
gridRowGap: '0px',
gridTemplateColumns: isMobile
? '1fr 1fr'
: `repeat(${bookmarkDensity}, 1fr)`,
gridTemplateColumns: `repeat(${bookmarkDensity}, 1fr)`,
gridTemplateRows: 'auto',
}}
>