Skip to content

Commit

Permalink
fix: nif modal close button position
Browse files Browse the repository at this point in the history
Signed-off-by: thediveo <[email protected]>
  • Loading branch information
thediveo committed Jul 24, 2024
1 parent ca8b751 commit 7424f28
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions webui/src/components/nifinfomodal/NifInfoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import LanIcon from '@mui/icons-material/Lan'
import { ContentCopy } from '@mui/icons-material'
import CloseIcon from '@mui/icons-material/Close'

const NifDialogTitle = styled(DialogTitle)(() => ({
'& .MuiSvgIcon-root': {
const NifDialogTitle = styled(DialogTitle)(({theme}) => ({
'& .close': {
position: 'relative',
verticalAlign: 'baseline',
top: '0.3ex',
right: theme.spacing(-1),
top: theme.spacing(-0.25),
},
}))

Expand Down Expand Up @@ -118,6 +118,7 @@ export const NifInfoModalProvider = ({ children }: NifInfoModalProviderProps) =>
<NifDialogTitle>
<LanIcon fontSize="inherit" />&nbsp;Network Interface Information
<CloseButton
className="close"
aria-label="close"
onClick={handleClose}
size="large">
Expand Down

0 comments on commit 7424f28

Please sign in to comment.