Skip to content

Commit

Permalink
Fix beta warning notice to the top (#351)
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-grace authored Oct 7, 2024
1 parent 3118827 commit 185abd1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 34 deletions.
2 changes: 1 addition & 1 deletion src/components/DataSampleGridView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const gridCommonProps: Partial<GridProps> = {
gridTemplateColumns: "290px 1fr",
gap: 3,
px: 10,
mb: 2,
py: 2,
w: "100%",
};

Expand Down
66 changes: 33 additions & 33 deletions src/components/DefaultPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,39 +102,39 @@ const DefaultPageLayout = ({
spacing={0}
bgColor="whitesmoke"
>
<ActionBar
zIndex={2}
position="sticky"
top={0}
itemsCenter={
<>
{showPageTitle && (
<Heading size="md" fontWeight="normal" color="white">
<FormattedMessage id={titleId} />
</Heading>
)}
</>
}
itemsLeft={toolbarItemsLeft || <AppLogo />}
itemsRight={
<>
<HStack spacing={3} display={{ base: "none", lg: "flex" }}>
{toolbarItemsRight}
<SettingsMenu />
</HStack>
<HelpMenu />
<ToolbarMenu
isMobile
variant="plain"
label={intl.formatMessage({ id: "main-menu" })}
>
{menuItems}
<LanguageMenuItem />
</ToolbarMenu>
</>
}
/>
{flags.preReleaseNotice && <PreReleaseNotice />}
<VStack zIndex={1} position="sticky" top={0} gap={0}>
<ActionBar
w="100%"
itemsCenter={
<>
{showPageTitle && (
<Heading size="md" fontWeight="normal" color="white">
<FormattedMessage id={titleId} />
</Heading>
)}
</>
}
itemsLeft={toolbarItemsLeft || <AppLogo />}
itemsRight={
<>
<HStack spacing={3} display={{ base: "none", lg: "flex" }}>
{toolbarItemsRight}
<SettingsMenu />
</HStack>
<HelpMenu />
<ToolbarMenu
isMobile
variant="plain"
label={intl.formatMessage({ id: "main-menu" })}
>
{menuItems}
<LanguageMenuItem />
</ToolbarMenu>
</>
}
/>
{flags.preReleaseNotice && <PreReleaseNotice />}
</VStack>
<Flex flexGrow={1} flexDir="column">
{children}
</Flex>
Expand Down
1 change: 1 addition & 0 deletions src/components/PreReleaseNotice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ const PreReleaseNotice = () => {
onClose={feedbackDialogDisclosure.onClose}
/>
<Flex
w="100%"
bgColor="gray.800"
color="white"
p={1}
Expand Down

0 comments on commit 185abd1

Please sign in to comment.