fix: margin between the top bar and the content (#1054)

This commit is contained in:
Kieran Cui 2024-10-22 11:31:42 +08:00 committed by GitHub
parent 195b6e1e17
commit e6491e512b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 2 deletions

View File

@ -73,9 +73,12 @@ export const EntryListHeader: FC<{
return (
<div
ref={containerRef}
className="flex w-full flex-col pl-6 pr-4 pt-2.5 transition-[padding] duration-300 ease-in-out"
className={cn(
"flex w-full flex-col pl-6 pr-4 pt-2.5 transition-[padding] duration-300 ease-in-out",
view !== FeedViewType.Articles && view !== FeedViewType.Pictures && "mb-2",
)}
>
<div className={cn("flex h-10 w-full", titleAtBottom ? "justify-end" : "justify-between")}>
<div className={cn("flex w-full", titleAtBottom ? "justify-end" : "justify-between")}>
{!titleAtBottom && titleInfo}
<div