Browse Source

fix: 🎨

imwald
codytseng 1 year ago
parent
commit
83ae874059
  1. 3
      src/PageManager.tsx
  2. 2
      src/components/Embedded/EmbeddedMention.tsx
  3. 6
      src/components/Note/index.tsx
  4. 2
      src/components/ReplyNote/index.tsx
  5. 4
      src/components/Username/index.tsx

3
src/PageManager.tsx

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

2
src/components/Embedded/EmbeddedMention.tsx

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

6
src/components/Note/index.tsx

@ -37,14 +37,14 @@ export default function Note({ @@ -37,14 +37,14 @@ export default function Note({
<div className="flex gap-2 items-center">
<Username
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'}
/>
{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 className="text-xs text-muted-foreground line-clamp-1">
<div className="text-xs text-muted-foreground shrink-0">
<FormattedTimestamp timestamp={event.created_at} />
</div>
</div>

2
src/components/ReplyNote/index.tsx

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

4
src/components/Username/index.tsx

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

Loading…
Cancel
Save