Skip to content

Commit

Permalink
fix: adjust welcome dialog size (#8244)
Browse files Browse the repository at this point in the history
  • Loading branch information
kwasniew authored Sep 25, 2024
1 parent e33f71a commit 957ef12
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
21 changes: 12 additions & 9 deletions frontend/src/component/personalDashboard/ConnectSDK.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Button, styled, Typography } from '@mui/material';
import { Button, styled } from '@mui/material';
import type { FC } from 'react';

const TitleContainer = styled('div')(({ theme }) => ({
Expand Down Expand Up @@ -35,10 +35,10 @@ export const CreateFlag: FC<{ project: string }> = ({ project }) => {
<NeutralCircleContainer>1</NeutralCircleContainer>
Create a feature flag
</TitleContainer>
<Typography>
<div>The project currently holds no feature toggles.</div>
<div>Create a feature flag to get started.</div>
</Typography>
<div>
<p>The project currently holds no feature toggles.</p>
<p>Create a feature flag to get started.</p>
</div>
<div>
<Button href={`projects/${project}`} variant='contained'>
Go to project
Expand All @@ -56,10 +56,13 @@ export const ConnectSDK: FC<{ project: string }> = ({ project }) => {
<NeutralCircleContainer>2</NeutralCircleContainer>
Connect an SDK
</TitleContainer>
<Typography>
Your project is not yet connected to any SDK. In order to start
using your feature flag connect an SDK to the project.
</Typography>
<div>
<p>Your project is not yet connected to any SDK.</p>
<p>
In order to start using your feature flag connect an SDK to
the project.
</p>
</div>
<div>
<Button href={`projects/${project}`} variant='contained'>
Go to project
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/component/personalDashboard/WelcomeDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import { formatAssetPath } from 'utils/formatPath';
const StyledDialog = styled(Dialog)(({ theme }) => ({
'& .MuiDialog-paper': {
borderRadius: theme.shape.borderRadiusLarge,
maxWidth: theme.spacing(140),
width: '100%',
width: '65vw',
maxWidth: '1800px',
backgroundColor: 'transparent',
},
padding: 0,
Expand Down

0 comments on commit 957ef12

Please sign in to comment.