Skip to content

Commit 738743b

Browse files
authored
chore: new post button palcement (#6137)
1 parent ae980a7 commit 738743b

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

packages/shared/src/components/sidebar/SidebarDesktopV2.tsx

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -681,23 +681,6 @@ export const SidebarDesktopV2 = ({
681681
className="my-2 h-px w-6 bg-border-subtlest-quaternary"
682682
/>
683683

684-
{isLoggedIn && (
685-
<Tooltip
686-
side="right"
687-
content="New post"
688-
collisionPadding={RAIL_TOOLTIP_COLLISION_PADDING}
689-
>
690-
<div>
691-
<CreatePostButton
692-
compact
693-
showIcon
694-
size={ButtonSize.Small}
695-
className="!size-10 !rounded-12 !border-0 !bg-transparent text-text-tertiary hover:!bg-surface-hover hover:!text-text-primary"
696-
/>
697-
</div>
698-
</Tooltip>
699-
)}
700-
701684
<div
702685
role="tablist"
703686
aria-label="Sidebar categories"
@@ -765,6 +748,23 @@ export const SidebarDesktopV2 = ({
765748
</React.Fragment>
766749
);
767750
})}
751+
752+
{isLoggedIn && (
753+
<Tooltip
754+
side="right"
755+
content="New post"
756+
collisionPadding={RAIL_TOOLTIP_COLLISION_PADDING}
757+
>
758+
<div>
759+
<CreatePostButton
760+
compact
761+
showIcon
762+
size={ButtonSize.Small}
763+
className="!size-10 !rounded-12"
764+
/>
765+
</div>
766+
</Tooltip>
767+
)}
768768
</div>
769769

770770
<div

0 commit comments

Comments
 (0)