fix dark mode colors, check todo in readme

This commit is contained in:
spencerwooo
2021-09-05 16:09:24 +01:00
parent 4d6b41f156
commit e53716eb12
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
- [x] File permalink copy and direct file download
- [x] Dark mode
- [x] Protected routes (password protection and authentication) through `.password` files
- [ ] Pagination for folders with more than 200 items
- [x] Pagination for folders with more than 200 items
## Discussion
+2 -2
View File
@@ -283,12 +283,12 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
{!onlyOnePage && (
<div>
<div className="p-3 font-mono text-sm text-center text-gray-400 border-b">
<div className="dark:border-gray-700 p-3 font-mono text-sm text-center text-gray-400 border-b border-gray-200">
- showing {size} page{size > 1 ? 's' : ''} of {isLoadingMore ? '...' : children.length} files -
</div>
<button
className={`flex items-center justify-center w-full p-3 space-x-2 ${
isLoadingMore || isReachingEnd ? 'opacity-60' : 'hover:bg-gray-100'
isLoadingMore || isReachingEnd ? 'opacity-60' : 'hover:bg-gray-100 dark:hover:bg-gray-850'
}`}
onClick={() => setSize(size + 1)}
disabled={isLoadingMore || isReachingEnd}