Adjust margin in MessageHeader component

- Added marginRight of 10px to the container holding the ActionIcon in MessageHeader.
- Also applied marginRight of 10px to the ActionIcon itself for consistent spacing.
This commit is contained in:
Rankin Zheng 2023-08-04 11:07:55 +08:00
parent 4d3e53ded3
commit 96bef7ff1d

View File

@ -52,7 +52,7 @@ const MessageHeader = (props: any) => {
align="center"
direction="row"
wrap="wrap"
style={{ marginLeft: 'auto' }}>
style={{ marginLeft: 'auto', marginRight: '10px' }}>
<Tooltip sx={{ padding: '3px', fontSize: 'var(--vscode-editor-font-size)' }} label={done ? 'Refilled' : 'Refill prompt'} withArrow position="left" color="gray">
<ActionIcon size='sm'
onClick={() => {
@ -89,7 +89,7 @@ const MessageHeader = (props: any) => {
: <CopyButton value={message} timeout={2000}>
{({ copied, copy }) => (
<Tooltip sx={{ padding: '3px', fontSize: 'var(--vscode-editor-font-size)' }} label={copied ? 'Copied' : 'Copy message'} withArrow position="left" color="gray">
<ActionIcon size='xs' color={copied ? 'teal' : 'gray'} onClick={copy} style={{ marginLeft: 'auto' }}>
<ActionIcon size='xs' color={copied ? 'teal' : 'gray'} onClick={copy} style={{ marginLeft: 'auto', marginRight: '10px' }}>
{copied ? <IconCheck size="1rem" /> : <IconCopy size="1rem" />}
</ActionIcon>
</Tooltip>