Skip to content

Commit

Permalink
Merge branch 'daniel-schwartz-k:main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
danielschwartz85 committed Jul 27, 2023
2 parents c9bddce + 0f6bd05 commit 08cdd15
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/components/secret/secretInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import Popper, { PopperProps } from '@mui/material/Popper'
import DeleteForever from '@mui/icons-material/DeleteForever'
import Box from '@mui/material/Box'
import { ellipsePad } from '../../src/util'
import Tooltip from '@mui/material/Tooltip'
import ConfirmDeleteDialog from './confirmDeleteDialog'

type ITextWithSaveProps = TextFieldProps & {
Expand Down Expand Up @@ -61,9 +60,10 @@ function TextWithSave(props: ITextWithSaveProps) {
onClick={handleClickSaveIcon}
onMouseDown={handleMouseDownSave}
edge="end"
sx={{ mr: -1 }}
sx={{ mr: -4 }}
title="Save"
>
<Save />
<Save fontSize="small" />
</IconButton>
)}
</InputAdornment>
Expand Down Expand Up @@ -122,11 +122,14 @@ export default function SecretInput(props: ISecretInputProps) {
renderOption={(props, option) => (
<li {...props} style={{ display: 'flex', justifyContent: 'space-between' }}>
<Box sx={{ overflow: 'hidden' }}>{ellipsePad(option.label)}</Box>
<Tooltip title="Delete">
<IconButton aria-label="delete secret" onClick={() => handleClickDelete(option)} edge="end">
<DeleteForever color="secondary" fontSize="small" />
</IconButton>
</Tooltip>
<IconButton
aria-label="delete secret"
title="Delete"
onClick={() => handleClickDelete(option)}
edge="end"
>
<DeleteForever color="secondary" fontSize="small" />
</IconButton>
</li>
)}
options={secrets}
Expand Down

0 comments on commit 08cdd15

Please sign in to comment.