💄 Fix some style issue

This commit is contained in:
LittleSheep 2024-02-06 11:15:21 +08:00
parent 4d618a91fe
commit 6edee6c048
2 changed files with 7 additions and 3 deletions

View File

@ -76,7 +76,11 @@ export default function PostItem(props: {
</For> </For>
</div> </div>
<Show when={props.post.attachments?.length > 0}>
<div class="pb-5">
<PostAttachments attachments={props.post.attachments ?? []} /> <PostAttachments attachments={props.post.attachments ?? []} />
</div>
</Show>
<Show when={!props.noRelated && props.post.repost_to}> <Show when={!props.noRelated && props.post.repost_to}>
<p class="text-xs mt-3 mb-2"> <p class="text-xs mt-3 mb-2">
@ -174,7 +178,7 @@ export default function PostItem(props: {
<div class="post-item"> <div class="post-item">
{element} {element}
</div> </div>
) );
} else { } else {
return ( return (
<a class="post-item" href={`/posts/${props.post.id}`}> <a class="post-item" href={`/posts/${props.post.id}`}>

View File

@ -25,7 +25,7 @@ export default function Navbar() {
} }
return ( return (
<div class="navbar bg-base-100 shadow-md px-5 z-10 fixed top-0"> <div class="navbar bg-base-100 shadow-md px-5 z-[100] fixed top-0">
<div class="navbar-start"> <div class="navbar-start">
<div class="dropdown"> <div class="dropdown">
<div tabIndex={0} role="button" class="btn btn-ghost lg:hidden"> <div tabIndex={0} role="button" class="btn btn-ghost lg:hidden">