chore: fix compact default value

This commit is contained in:
Steven 2024-06-04 07:17:16 +08:00
parent 616f306efe
commit e40b39033f
5 changed files with 5 additions and 4 deletions

View file

@ -65,7 +65,7 @@ const Explore = () => {
<div className="flex flex-col justify-start items-start w-full max-w-full">
<MemoFilter className="px-2 pb-2" />
{sortedMemos.map((memo) => (
<MemoView key={`${memo.name}-${memo.updateTime}`} memo={memo} showCreator showVisibility showPinned />
<MemoView key={`${memo.name}-${memo.updateTime}`} memo={memo} showCreator showVisibility showPinned compact />
))}
{isRequesting ? (
<div className="flex flex-row justify-center items-center w-full my-4 text-gray-400">

View file

@ -89,7 +89,7 @@ const Home = () => {
<div className="flex flex-col justify-start items-start w-full max-w-full">
<MemoFilter className="px-2 pb-2" />
{sortedMemos.map((memo) => (
<MemoView key={`${memo.name}-${memo.updateTime}`} memo={memo} showVisibility showPinned />
<MemoView key={`${memo.name}-${memo.updateTime}`} memo={memo} showVisibility showPinned compact />
))}
{isRequesting ? (
<div className="flex flex-row justify-center items-center w-full my-4 text-gray-400">

View file

@ -131,7 +131,7 @@ const MemoDetail = () => {
</Button>
</div>
{comments.map((comment) => (
<MemoView key={`${comment.name}-${comment.displayTime}`} memo={comment} showCreator />
<MemoView key={`${comment.name}-${comment.displayTime}`} memo={comment} showCreator compact />
))}
</>
)}

View file

@ -174,6 +174,7 @@ const Timeline = () => {
className="!border w-full !border-gray-100 dark:!border-zinc-700"
memo={memo}
displayTimeFormat="time"
compact
/>
))}
</div>

View file

@ -133,7 +133,7 @@ const UserProfile = () => {
</div>
<MemoFilter className="px-2 pb-3" />
{sortedMemos.map((memo) => (
<MemoView key={`${memo.name}-${memo.displayTime}`} memo={memo} showVisibility showPinned />
<MemoView key={`${memo.name}-${memo.displayTime}`} memo={memo} showVisibility showPinned compact />
))}
{isRequesting ? (
<div className="flex flex-row justify-center items-center w-full my-4 text-gray-400">