Style updates
This commit is contained in:
@@ -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',
|
||||
}}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user