fix: 🎨

This commit is contained in:
codytseng
2025-02-15 22:38:45 +08:00
parent 6c63da2a96
commit 83ae874059
5 changed files with 8 additions and 9 deletions

View File

@@ -271,7 +271,7 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
<Sidebar /> <Sidebar />
<Separator orientation="vertical" /> <Separator orientation="vertical" />
<div className="grid grid-cols-2 w-full"> <div className="grid grid-cols-2 w-full">
<div className="flex"> <div className="flex border-r">
{primaryPages.map(({ name, element }) => ( {primaryPages.map(({ name, element }) => (
<div <div
key={name} key={name}
@@ -283,7 +283,6 @@ export function PageManager({ maxStackSize = 5 }: { maxStackSize?: number }) {
{element} {element}
</div> </div>
))} ))}
<Separator orientation="vertical" className="z-50" />
</div> </div>
<div> <div>
{secondaryStack.map((item, index) => ( {secondaryStack.map((item, index) => (

View File

@@ -6,7 +6,7 @@ export function EmbeddedMention({ userId }: { userId: string }) {
<Username <Username
userId={userId} userId={userId}
showAt showAt
className="text-highlight font-normal inline-block" className="text-highlight font-normal inline"
withoutSkeleton withoutSkeleton
/> />
) )

View File

@@ -37,14 +37,14 @@ export default function Note({
<div className="flex gap-2 items-center"> <div className="flex gap-2 items-center">
<Username <Username
userId={event.pubkey} userId={event.pubkey}
className={`font-semibold flex ${size === 'small' ? 'text-sm' : ''}`} className={`font-semibold flex truncate ${size === 'small' ? 'text-sm' : ''}`}
skeletonClassName={size === 'small' ? 'h-3' : 'h-4'} skeletonClassName={size === 'small' ? 'h-3' : 'h-4'}
/> />
{usingClient && size === 'normal' && ( {usingClient && size === 'normal' && (
<div className="text-xs text-muted-foreground truncate">using {usingClient}</div> <div className="text-xs text-muted-foreground shrink-0">using {usingClient}</div>
)} )}
</div> </div>
<div className="text-xs text-muted-foreground line-clamp-1"> <div className="text-xs text-muted-foreground shrink-0">
<FormattedTimestamp timestamp={event.created_at} /> <FormattedTimestamp timestamp={event.created_at} />
</div> </div>
</div> </div>

View File

@@ -29,7 +29,7 @@ export default function ReplyNote({
className="text-sm font-semibold text-muted-foreground hover:text-foreground truncate" className="text-sm font-semibold text-muted-foreground hover:text-foreground truncate"
skeletonClassName="h-3" skeletonClassName="h-3"
/> />
<div className="text-xs text-muted-foreground"> <div className="text-xs text-muted-foreground shrink-0">
<FormattedTimestamp timestamp={event.created_at} /> <FormattedTimestamp timestamp={event.created_at} />
</div> </div>
</div> </div>

View File

@@ -30,7 +30,7 @@ export default function Username({
return ( return (
<HoverCard> <HoverCard>
<HoverCardTrigger asChild> <HoverCardTrigger asChild>
<div className={cn('max-w-fit', className)}> <div className={className}>
<SecondaryPageLink <SecondaryPageLink
to={toProfile(pubkey)} to={toProfile(pubkey)}
className="truncate hover:underline" className="truncate hover:underline"
@@ -65,7 +65,7 @@ export function SimpleUsername({
const { username } = profile const { username } = profile
return ( return (
<div className={cn('max-w-fit', className)}> <div className={className}>
{showAt && '@'} {showAt && '@'}
{username} {username}
</div> </div>