Skip to content

Commit fe01212

Browse files
committed
🚸 Raise Plus upload quota to 5 and hide mobile upload button
1 parent 46bb015 commit fe01212

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

‎pages/shelf/[[walletAddress]].vue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
<template v-else>
104104
<div
105105
v-if="isUploadedBookFeatureEnabled && isMyBookshelf && (hasUploadedBooks || (isLikerPlus && !isExpiredLikerPlus))"
106-
class="w-full mt-4"
106+
:class="['w-full mt-4', !hasUploadedBooks && 'max-tablet:hidden']"
107107
>
108108
<div class="flex items-center justify-between mb-3">
109109
<h2
@@ -114,7 +114,7 @@
114114
</h2>
115115
<UploadBookModal
116116
v-if="isLikerPlus && !isExpiredLikerPlus"
117-
class="ml-auto"
117+
class="ml-auto max-tablet:hidden"
118118
size="sm"
119119
variant="soft"
120120
@uploaded="loadBookshelfData(walletAddress!, { isRefresh: true })"

‎shared/utils/uploaded-book.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export function isUploadedBookId(id: string): boolean {
55
}
66

77
export const UPLOADED_BOOK_MAX_FILE_SIZE = 100 * 1024 * 1024 // 100 MB
8-
export const UPLOADED_BOOK_MAX_COUNT = 2
8+
export const UPLOADED_BOOK_MAX_COUNT = 5
99
export const UPLOADED_BOOK_ALLOWED_TYPES = ['application/epub+zip', 'application/pdf']
1010

1111
export type UploadedBookMimeType = 'application/epub+zip' | 'application/pdf'

0 commit comments

Comments
 (0)