Skip to content

Commit b8ea57e

Browse files
authored
Merge pull request #3608 from JoinColony/fix/3470-colony-picker-height-adjustment
fix: make colony switcher the same height as sidebar
2 parents 5ea4ee5 + 990f343 commit b8ea57e

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/v5/frame/PageLayout/PageLayout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const PageLayout: FC<PropsWithChildren<PageLayoutProps>> = ({
5050
<section ref={topContentContainerRef}>{topContent}</section>
5151
<div className="flex h-[calc(100vh-var(--top-content-height))] flex-row">
5252
<section
53-
className={clsx('md:py-4 md:pl-4', {
53+
className={clsx('relative md:py-4 md:pl-4', {
5454
'sm:py-4 sm:pl-4': enableMobileAndDesktopLayoutBreakpoints,
5555
})}
5656
>

src/components/v5/shared/Navigation/ColonySwitcher/ColonySwitcher.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const ColonySwitcher: React.FC<ColonySwitcherProps> = ({
3838

3939
const { getTooltipProps, setTooltipRef, setTriggerRef, visible } =
4040
usePopperTooltip({
41-
placement: 'right',
41+
placement: 'right-start',
4242
trigger: 'click',
4343
interactive: true,
44-
offset: offset ?? [-20, 16],
44+
offset: offset ?? [-31, 16],
4545
});
4646

4747
const colonyName =

src/components/v5/shared/Navigation/ColonySwitcher/partials/JoinedColoniesPopover/JoinedColoniesPopover.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@ const JoinedColoniesPopover = ({
3434
setTooltipRef={setTooltipRef}
3535
tooltipProps={getTooltipProps}
3636
classNames={clsx(
37-
'bg-white z-top mt-4 max-h-[calc(100vh-32px)] w-[252px] rounded-lg border-gray-200 px-0 pb-4 pt-0 shadow-none',
37+
'bg-white !left-[calc(100%+0.4rem)] z-top mt-4 max-h-[calc(100%-32px)] w-[252px] !transform-none rounded-lg border-gray-200 px-0 pb-4 pt-0 shadow-none',
3838
{
3939
'!bg-gray-100': isDarkMode,
4040
},
4141
)}
4242
>
43-
<div className="flex max-h-[calc(536px)] flex-col gap-6 overflow-hidden">
43+
<div className="flex flex-col gap-6 overflow-hidden">
4444
{wallet ? (
4545
<JoinedColoniesList
4646
enableMobileAndDesktopLayoutBreakpoints={

0 commit comments

Comments
 (0)