fix: Large empty space at the bottom of the screen #98

This commit is contained in:
rustmailer
2026-01-06 14:36:01 +08:00
parent 147f5b4f55
commit 1768c1a590
12 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -151,7 +151,7 @@ export default function Search() {
</p>
</div>
</div>}
{total > 0 && <ScrollArea className='h-[40rem] w-full pr-4 -mr-4 py-1'>
{total > 0 && <ScrollArea className='h-[calc(100vh-14rem)] w-full pr-4 -mr-4 py-1'>
<MailList
isLoading={isLoading}
items={emails}
+1 -1
View File
@@ -147,7 +147,7 @@ export function MailList({
/>
<span className="text-xs text-muted-foreground">
{totalSelected > 0
? `${totalSelected} ${t('common.selected')}`
? `${t('search.bulkActions.selected', { count: totalSelected })}`
: t('common.selectAll')}
</span>
</div>
+1 -1
View File
@@ -83,7 +83,7 @@ export function EnvelopeTags({ selectedTags, onTagToggle }: EnvelopeTagsProps) {
{sortedTags.length === 0 ? (
<p className="py-2 pl-2 text-sm text-muted-foreground">{t('mail.noTagsYet')}</p>
) : (
<ScrollArea className="h-[45rem] w-full pr-4 -mr-4">
<ScrollArea className="h-[calc(100vh-12rem)] w-full pr-4 -mr-4">
{sortedTags.map(({ tag: facet, count }) => {
const checked = selectedTags.includes(facet);
const id = `tag-${facet}`;