Skip to content

Commit

Permalink
[frontend] Correct the position of the + button and the size of the d…
Browse files Browse the repository at this point in the history
…rawer (#9279)
  • Loading branch information
Gwendoline-FAVRE-FELIX committed Jan 20, 2025
1 parent 40a8cdd commit 0c67c4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const useStyles = makeStyles<Theme>((theme) => ({
createButtonContextual: {
position: 'fixed',
bottom: 30,
right: 100,
right: 30,
transition: theme.transitions.create('right', {
easing: theme.transitions.easing.sharp,
duration: theme.transitions.duration.enteringScreen,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import IndicatorCreation from '../indicators/IndicatorCreation';
const styles = (theme) => ({
drawerPaper: {
minHeight: '100vh',
width: '50%',
position: 'fixed',
transition: theme.transitions.create('width', {
easing: theme.transitions.easing.sharp,
Expand Down Expand Up @@ -100,7 +99,7 @@ class StixCyberObservableAddIndicators extends Component {
size="large"
color="primary"
>
<Close fontSize="small" color="primary" />
<Close fontSize="small" color="primary"/>
</IconButton>
<Typography variant="h6" classes={{ root: classes.title }}>
{t('Add indicators')}
Expand Down Expand Up @@ -134,8 +133,14 @@ class StixCyberObservableAddIndicators extends Component {
}}
/>
</div>
<div className={classes.createButton}>
<IndicatorCreation
display={open}
contextual
paginationOptions={paginationOptions}
/>
</div>
</Drawer>
<IndicatorCreation display={open} contextual paginationOptions={paginationOptions} />
</>
);
}
Expand Down

0 comments on commit 0c67c4c

Please sign in to comment.