mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
Draw: dynamic header
This commit is contained in:
@@ -90,18 +90,20 @@ export function DrawSectionHeading(props: {
|
||||
</Box>
|
||||
|
||||
{/* Close button */}
|
||||
<IconButton
|
||||
variant='plain'
|
||||
color='neutral'
|
||||
onClick={props.onRemoveHeading}
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
top: -2,
|
||||
right: -4,
|
||||
zIndex: 1,
|
||||
}}>
|
||||
<CloseRoundedIcon />
|
||||
</IconButton>
|
||||
{!!props.onRemoveHeading && (
|
||||
<IconButton
|
||||
variant='plain'
|
||||
color='neutral'
|
||||
onClick={props.onRemoveHeading}
|
||||
sx={{
|
||||
position: 'absolute',
|
||||
top: -2,
|
||||
right: -4,
|
||||
zIndex: 1,
|
||||
}}>
|
||||
<CloseRoundedIcon />
|
||||
</IconButton>
|
||||
)}
|
||||
</Box>
|
||||
|
||||
{/* Section Selector*/}
|
||||
|
||||
Reference in New Issue
Block a user