mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
[GH-24843]: Fix customize_your_experience overlay position (#25053)
* fix: customize_your_experience tour point position * fix: overlayPunchOut position * fix: styling * fix: styling * fix: semi-colon typo --------- Co-authored-by: Mattermost Build <build@mattermost.com>
This commit is contained in:
parent
7d92e71daf
commit
8e84adb176
@ -40,6 +40,16 @@ const RightControlsContainer = styled.div`
|
|||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|
||||||
|
const StyledCustomizeYourExperienceTour = styled.div`
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 100%
|
||||||
|
`;
|
||||||
|
|
||||||
|
const StyledStatusDropdown = styled.div`
|
||||||
|
margin-left: 8px;
|
||||||
|
`;
|
||||||
|
|
||||||
export type Props = {
|
export type Props = {
|
||||||
productId?: ProductIdentifier;
|
productId?: ProductIdentifier;
|
||||||
}
|
}
|
||||||
@ -60,8 +70,6 @@ const RightControls = ({productId = null}: Props): JSX.Element => {
|
|||||||
<>
|
<>
|
||||||
<AtMentionsButton/>
|
<AtMentionsButton/>
|
||||||
<SavedPostsButton/>
|
<SavedPostsButton/>
|
||||||
<SettingsButton/>
|
|
||||||
{showCustomizeTip && <CustomizeYourExperienceTour/>}
|
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<Pluggable
|
<Pluggable
|
||||||
@ -70,7 +78,19 @@ const RightControls = ({productId = null}: Props): JSX.Element => {
|
|||||||
pluggableId={productId}
|
pluggableId={productId}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
<StatusDropdown/>
|
<StyledCustomizeYourExperienceTour id='CustomizeYourExperienceTour'>
|
||||||
|
{
|
||||||
|
isChannels(productId) ? (
|
||||||
|
<>
|
||||||
|
<SettingsButton/>
|
||||||
|
{showCustomizeTip && <CustomizeYourExperienceTour/>}
|
||||||
|
</>
|
||||||
|
) : null
|
||||||
|
}
|
||||||
|
<StyledStatusDropdown>
|
||||||
|
<StatusDropdown/>
|
||||||
|
</StyledStatusDropdown>
|
||||||
|
</StyledCustomizeYourExperienceTour>
|
||||||
</RightControlsContainer>
|
</RightControlsContainer>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -29,7 +29,7 @@ export const CustomizeYourExperienceTour = () => {
|
|||||||
</p>
|
</p>
|
||||||
);
|
);
|
||||||
|
|
||||||
const overlayPunchOut = useMeasurePunchouts(['RightControlsContainer'], [], {y: 6, height: -6, x: 64, width: 0});
|
const overlayPunchOut = useMeasurePunchouts(['CustomizeYourExperienceTour'], []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<OnboardingTourTip
|
<OnboardingTourTip
|
||||||
|
Loading…
Reference in New Issue
Block a user