Skip to content

Commit

Permalink
[frontend] Fix border radius everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelHassine committed Feb 27, 2024
1 parent 593ea0f commit 9920d67
Show file tree
Hide file tree
Showing 66 changed files with 94 additions and 87 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const useStyles = makeStyles(() => ({
lineHeight: '12px',
height: 20,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
width: 120,
},
chipInList: {
Expand All @@ -19,7 +19,7 @@ const useStyles = makeStyles(() => ({
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ const useStyles = makeStyles(() => ({
height: 25,
marginRight: 7,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
width: 80,
},
chipInList: {
fontSize: 12,
height: 20,
float: 'left',
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
width: 80,
},
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ const useStyles = makeStyles(() => ({
height: 25,
marginRight: 7,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
width: 80,
},
chipInList: {
fontSize: 12,
height: 20,
float: 'left',
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
width: 80,
},
}));
Expand Down
3 changes: 3 additions & 0 deletions opencti-platform/opencti-front/src/components/ThemeDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,12 @@ const ThemeDark = (
fontFamily: 'Consolas, monaco, monospace',
color: '#ffffff !important',
background: `${accent || THEME_DARK_DEFAULT_ACCENT} !important`,
borderRadius: 4,
},
'pre.light': {
fontFamily: 'Consolas, monaco, monospace',
background: `${nav || THEME_DARK_DEFAULT_NAV} !important`,
borderRadius: 4,
},
code: {
fontFamily: 'Consolas, monaco, monospace',
Expand All @@ -181,6 +183,7 @@ const ThemeDark = (
padding: 3,
fontSize: 12,
fontWeight: 400,
borderRadius: 4,
},
'.react-mde': {
border: '0 !important',
Expand Down
3 changes: 3 additions & 0 deletions opencti-platform/opencti-front/src/components/ThemeLight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,12 @@ const ThemeLight = (
fontFamily: 'Consolas, monaco, monospace',
color: '#000000 !important',
background: `${accent || THEME_LIGHT_DEFAULT_ACCENT} !important`,
borderRadius: 4,
},
'pre.light': {
fontFamily: 'Consolas, monaco, monospace',
background: `${nav || THEME_LIGHT_DEFAULT_NAV} !important`,
borderRadius: 4,
},
code: {
fontFamily: 'Consolas, monaco, monospace',
Expand All @@ -181,6 +183,7 @@ const ThemeLight = (
padding: 3,
fontSize: 12,
fontWeight: 400,
borderRadius: 4,
},
'.react-mde': {
border: '0 !important',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const styles = (theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
item: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const useStyles = makeStyles<Theme>((theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text?.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
}));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const styles = (theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const styles = (theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
item: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const styles = (theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const styles = (theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const styles = (theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const useStyles = makeStyles(() => ({
height: 25,
marginTop: 4,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const useStyles = makeStyles<Theme>((theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text?.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
item: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const useStyles = makeStyles<Theme>((theme) => ({
backgroundColor: theme.palette.background.accent,
color: theme.palette.text?.primary,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
margin: '0 5px 5px 0',
},
item: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@ const useStyles = makeStyles((theme) => ({
lineHeight: '12px',
height: 20,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
chipInList: {
fontSize: 12,
height: 20,
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const useStyles = makeStyles((theme) => ({
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const useStyles = makeStyles((theme) => ({
lineHeight: '12px',
height: 20,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
cursor: 'pointer',
'&:hover': {
backgroundColor: theme.palette.primary.main,
Expand All @@ -58,15 +58,15 @@ const useStyles = makeStyles((theme) => ({
lineHeight: '12px',
height: 20,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
chipInList: {
fontSize: 12,
height: 20,
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const useStyles = makeStyles((theme) => ({
lineHeight: '12px',
height: 20,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
cursor: 'pointer',
'&:hover': {
backgroundColor: theme.palette.primary.main,
Expand All @@ -59,15 +59,15 @@ const useStyles = makeStyles((theme) => ({
lineHeight: '12px',
height: 20,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
chipInList: {
fontSize: 12,
height: 20,
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const useStyles = makeStyles((theme) => ({
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const useStyles = makeStyles<Theme>((theme) => ({
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const styles = (theme) => ({
height: 20,
float: 'left',
textTransform: 'uppercase',
borderRadius: 0,
borderRadius: 4,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,11 +256,11 @@ const StixCoreObjectsRadar = ({
);
return (
<Chart
options={radarChartOptions(theme, labels, [], true, false)}
options={radarChartOptions(theme, labels, [], true, true)}
series={chartData}
type="radar"
width="100%"
height="120%"
height="100%"
withExportPopover={withExportPopover}
isReadOnly={isReadOnly}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const styles = (theme) => ({
height: 20,
float: 'left',
textTransform: 'uppercase',
borderRadius: 0,
borderRadius: 4,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const styles = (theme) => ({
height: 20,
float: 'left',
textTransform: 'uppercase',
borderRadius: 0,
borderRadius: 4,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const styles = (theme) => ({
height: 20,
float: 'left',
textTransform: 'uppercase',
borderRadius: 0,
borderRadius: 4,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const styles = (theme) => ({
height: 20,
float: 'left',
textTransform: 'uppercase',
borderRadius: 0,
borderRadius: 4,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ const useStyles = makeStyles((theme) => ({
lineHeight: '12px',
height: 20,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
chipInList: {
fontSize: 12,
height: 20,
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const styles = (theme) => ({
fontSize: 15,
height: 30,
textTransform: 'uppercase',
borderRadius: 0,
borderRadius: 4,
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ const useStyles = makeStyles<Theme>((theme) => ({
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
chip: {
fontSize: 13,
lineHeight: '12px',
height: 20,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
cursor: 'pointer',
'&:hover': {
backgroundColor: theme.palette.primary.main,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const useStyles = makeStyles<Theme>((theme) => ({
float: 'left',
width: 120,
textTransform: 'uppercase',
borderRadius: '0',
borderRadius: 4,
},
}));

Expand Down
Loading

0 comments on commit 9920d67

Please sign in to comment.