mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-26 10:55:27 +00:00
fix(webui): fix pagination in file browser list mode
This commit is contained in:
@@ -261,7 +261,8 @@ export function FileBrowserGridView({
|
||||
<ChevronRight className="h-4 w-4" />
|
||||
)}
|
||||
<span>
|
||||
{formatCount(count, !isFolder)}{showSize ? ` • ${formatSize(size)}` : ''}
|
||||
{formatCount(count, !isFolder)}
|
||||
{showSize ? ` • ${formatSize(size)}` : ''}
|
||||
</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -305,7 +305,7 @@ export function FileBrowserListView({
|
||||
])
|
||||
|
||||
return (
|
||||
<div className="flex-1 overflow-x-auto" onClick={handleEmptyAreaClick}>
|
||||
<div className="w-full overflow-x-auto" onClick={handleEmptyAreaClick}>
|
||||
<div
|
||||
className="w-full relative"
|
||||
style={{
|
||||
@@ -406,7 +406,8 @@ export function FileBrowserListView({
|
||||
)}
|
||||
</div>
|
||||
<span className="text-sm font-medium text-muted-foreground whitespace-nowrap">
|
||||
{formatCount(count, !isFolder)}{showSize ? ` • ${formatSize(size)}` : ''}
|
||||
{formatCount(count, !isFolder)}
|
||||
{showSize ? ` • ${formatSize(size)}` : ''}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex-1 bg-card" />
|
||||
|
||||
Reference in New Issue
Block a user