Skip to content

Commit

Permalink
fix: popover
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Apr 9, 2024
1 parent 5d90266 commit cb17b83
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion src/app/(app)/notes/[id]/pageExtra.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const NoteHeaderDate = () => {
}`

return (
<FloatPopover as="span" TriggerComponent={NoteDateMeta}>
<FloatPopover as="span" type="tooltip" TriggerComponent={NoteDateMeta}>
{tips}
</FloatPopover>
)
Expand Down
54 changes: 27 additions & 27 deletions src/components/modules/comment/CommentSkeleton.tsx
Original file line number Diff line number Diff line change
@@ -1,40 +1,40 @@
const CommentSkeletonSingle = () => {
return (
<li className="relative list-none content-auto">
<div className="group flex w-full items-stretch gap-2">
<div className="flex w-9 shrink-0 items-end">
<div className="size-9 rounded-full bg-gray-300 dark:bg-neutral-600" />
</div>
const CommentSkeletonSingle = (
<li className="relative list-none content-auto">
<div className="group flex w-full items-stretch gap-2">
<div className="flex w-9 shrink-0 items-end">
<div className="size-9 rounded-full bg-gray-300 dark:bg-neutral-600" />
</div>

<div className="flex w-full min-w-0 flex-1 flex-col items-start">
<span className="relative mb-2 flex w-full min-w-0 items-center justify-center gap-2">
<span className="flex grow items-center gap-2">
<span className="ml-2 h-4 w-20 bg-gray-300 dark:bg-neutral-600" />
<span className="flex select-none items-center space-x-2">
<span className="inline-flex h-4 w-20 bg-gray-300 text-[0.71rem] font-medium opacity-40 dark:bg-neutral-600" />
<span className="h-4 w-20 bg-gray-300 text-[0.71rem] opacity-30 dark:bg-neutral-600" />
</span>
<div className="flex w-full min-w-0 flex-1 flex-col items-start">
<span className="relative mb-2 flex w-full min-w-0 items-center justify-center gap-2">
<span className="flex grow items-center gap-2">
<span className="ml-2 h-4 w-20 bg-gray-300 dark:bg-neutral-600" />
<span className="flex select-none items-center space-x-2">
<span className="inline-flex h-4 w-20 bg-gray-300 text-[0.71rem] font-medium opacity-40 dark:bg-neutral-600" />
<span className="h-4 w-20 bg-gray-300 text-[0.71rem] opacity-30 dark:bg-neutral-600" />
</span>
</span>
</span>

<div className="relative flex w-full flex-col gap-2">
<div className="relative ml-2 inline-block h-4 w-[calc(100%-3rem)] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600" />
<div className="relative ml-2 inline-block h-4 w-[120px] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600" />
</div>
<div className="relative flex w-full flex-col gap-2">
<div className="relative ml-2 inline-block h-4 w-[calc(100%-3rem)] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600" />
<div className="relative ml-2 inline-block h-4 w-[120px] rounded-xl bg-gray-300 px-2 py-1 dark:bg-neutral-600" />
</div>
</div>
</div>

<span className="sr-only">Loading...</span>
</li>
)

<span className="sr-only">Loading...</span>
</li>
)
}
export const CommentSkeleton: Component = () => {
return (
<div className="flex min-h-[400px] flex-col space-y-4">
<CommentSkeletonSingle />
<CommentSkeletonSingle />
<CommentSkeletonSingle />
<CommentSkeletonSingle />
{CommentSkeletonSingle}
{CommentSkeletonSingle}
{CommentSkeletonSingle}
{CommentSkeletonSingle}
{CommentSkeletonSingle}
</div>
)
}

0 comments on commit cb17b83

Please sign in to comment.