Skip to content

Commit

Permalink
fix: Align vertical edge padding across playground message editors (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
cephalization authored and Parker-Stafford committed Oct 21, 2024
1 parent 512f71d commit dcc85cb
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions app/src/pages/playground/PlaygroundChatTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ function MessageEditor({
return (
<View
paddingTop="size-100"
paddingStart="size-200"
paddingEnd="size-200"
paddingStart="size-250"
paddingEnd="size-250"
paddingBottom="size-200"
>
<Field label={"Tool Calls"}>
Expand Down Expand Up @@ -281,13 +281,26 @@ function MessageEditor({
);
}
return (
<TemplateEditor
height="100%"
value={message.content}
aria-label="Message content"
templateLanguage={templateLanguage}
onChange={(val) => updateMessage({ content: val })}
/>
<div
css={css`
& .cm-content {
padding-left: var(--ac-global-dimension-size-250);
padding-right: var(--ac-global-dimension-size-250);
}
& .cm-line {
padding-left: 0;
padding-right: 0;
}
`}
>
<TemplateEditor
height="100%"
value={message.content}
aria-label="Message content"
templateLanguage={templateLanguage}
onChange={(val) => updateMessage({ content: val })}
/>
</div>
);
}

Expand Down

0 comments on commit dcc85cb

Please sign in to comment.