Skip to content

Commit 950112d

Browse files
brichetsrdas
andauthored
Improve padding around code cell icons (#96)
Co-authored-by: Sanjiv Das <[email protected]>
1 parent 323ca04 commit 950112d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

packages/jupyter-chat/src/components/code-blocks/code-toolbar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export function CodeToolbar(props: CodeToolbarProps): JSX.Element {
8080
display: 'flex',
8181
justifyContent: 'flex-end',
8282
alignItems: 'center',
83-
padding: '6px 2px',
83+
padding: '2px 2px',
8484
marginBottom: '1em',
8585
border: '1px solid var(--jp-cell-editor-border-color)',
8686
borderTop: 'none'

packages/jupyter-chat/src/components/mui-extras/tooltipped-icon-button.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,11 @@ export function TooltippedIconButton(
7373
{...props.iconButtonProps}
7474
onClick={props.onClick}
7575
disabled={props.disabled}
76-
sx={{ lineHeight: 0, ...(props.disabled && { opacity: 0.5 }) }}
76+
sx={{
77+
marginLeft: '8px',
78+
lineHeight: 0,
79+
...(props.disabled && { opacity: 0.5 })
80+
}}
7781
aria-label={props['aria-label']}
7882
>
7983
{props.children}

0 commit comments

Comments
 (0)