Skip to content

Commit

Permalink
Improve padding around code cell icons (#96)
Browse files Browse the repository at this point in the history
Co-authored-by: Sanjiv Das <29005+srdas@users.noreply.github.com>
  • Loading branch information
brichet and srdas authored Nov 7, 2024
1 parent 323ca04 commit 950112d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export function CodeToolbar(props: CodeToolbarProps): JSX.Element {
display: 'flex',
justifyContent: 'flex-end',
alignItems: 'center',
padding: '6px 2px',
padding: '2px 2px',
marginBottom: '1em',
border: '1px solid var(--jp-cell-editor-border-color)',
borderTop: 'none'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,11 @@ export function TooltippedIconButton(
{...props.iconButtonProps}
onClick={props.onClick}
disabled={props.disabled}
sx={{ lineHeight: 0, ...(props.disabled && { opacity: 0.5 }) }}
sx={{
marginLeft: '8px',
lineHeight: 0,
...(props.disabled && { opacity: 0.5 })
}}
aria-label={props['aria-label']}
>
{props.children}
Expand Down

0 comments on commit 950112d

Please sign in to comment.