Skip to content

Commit aeb375b

Browse files
authored
RI-7718: Adjust some styling so all butons are in place and do not get out of the nav bar container (#5168)
1 parent 107ff41 commit aeb375b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

redisinsight/ui/src/templates/home-page-template/HomePageTemplate.tsx

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { FeatureFlagComponent, OAuthUserProfile } from 'uiSrc/components'
1010
import { OAuthSocialSource } from 'uiSrc/slices/interfaces'
1111
import { CopilotTrigger, InsightsTrigger } from 'uiSrc/components/triggers'
1212

13-
import { Flex, FlexItem } from 'uiSrc/components/base/layout/flex'
13+
import { FlexGroup, FlexItem } from 'uiSrc/components/base/layout/flex'
1414
import styles from './styles.module.scss'
1515

1616
export interface Props {
@@ -33,27 +33,23 @@ const HomePageTemplate = (props: Props) => {
3333
<>
3434
<div className={styles.pageDefaultHeader}>
3535
<HomeTabs />
36-
<Flex style={{ flexGrow: 0 }} gap="none" align="center">
36+
<FlexGroup gap="s">
3737
{isAnyChatAvailable && (
3838
<FlexItem style={{ marginRight: 12 }}>
3939
<CopilotTrigger />
4040
</FlexItem>
4141
)}
42-
<FlexItem grow>
42+
<FlexItem>
4343
<InsightsTrigger source="home page" />
4444
</FlexItem>
4545
<FeatureFlagComponent
4646
name={[FeatureFlags.cloudSso, FeatureFlags.cloudAds]}
4747
>
48-
<FlexItem
49-
grow
50-
style={{ marginLeft: 16 }}
51-
data-testid="home-page-sso-profile"
52-
>
48+
<FlexItem data-testid="home-page-sso-profile">
5349
<OAuthUserProfile source={OAuthSocialSource.UserProfile} />
5450
</FlexItem>
5551
</FeatureFlagComponent>
56-
</Flex>
52+
</FlexGroup>
5753
</div>
5854
<div className={styles.pageWrapper}>
5955
<ExplorePanelTemplate panelClassName={styles.explorePanel}>

0 commit comments

Comments
 (0)