Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
reyamir committed Oct 26, 2023
1 parent 3abce5e commit 1cb2d8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/shared/notes/kinds/repost.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ export function Repost({
if (status === 'loading') {
return (
<div className="h-min w-full px-3 pb-3">
<div className="relative overflow-hidden rounded-xl bg-white/10 px-3 py-3 backdrop-blur-xl">
<div className="relative overflow-hidden rounded-xl border border-neutral-300 bg-neutral-200 p-3 dark:border-neutral-700 dark:bg-neutral-800">
<NoteSkeleton />
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/notes/mentions/note.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const MentionNote = memo(function MentionNote({ id }: { id: string }) {

if (status === 'loading') {
return (
<div className="mt-3 cursor-default rounded-lg bg-white/10 px-3 py-3 backdrop-blur-xl">
<div className="mt-3 cursor-default rounded-lg border border-neutral-300 bg-neutral-200 p-3 dark:border-neutral-700 dark:bg-neutral-800">
<NoteSkeleton />
</div>
);
Expand Down
6 changes: 6 additions & 0 deletions src/shared/user.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ export const User = memo(function User({
);
}

if (variant === 'stacked') {
return (
<div className="h-8 w-8 animate-pulse rounded-full bg-neutral-300 dark:bg-neutral-700" />
);
}

return (
<div className="flex items-start gap-3">
<div className="h-10 w-10 shrink-0 animate-pulse rounded-lg bg-neutral-300 dark:bg-neutral-700" />
Expand Down

0 comments on commit 1cb2d8c

Please sign in to comment.