Remove border from assistant message header

Also: Increase right margin on token count to space it from the scrollbar.

Co-Authored-By: Antonio Scandurra <antonio@zed.dev>
This commit is contained in:
Nathan Sobo 2023-06-28 10:54:44 +02:00
parent 83fc7b9b7c
commit 7efcd60608

View file

@ -11,7 +11,6 @@ export default function assistant(colorScheme: ColorScheme) {
padding: { left: 12 }, padding: { left: 12 },
}, },
messageHeader: { messageHeader: {
border: border(layer, "default", { bottom: true, top: true }),
margin: { bottom: 6, top: 6 }, margin: { bottom: 6, top: 6 },
background: editor(colorScheme).background, background: editor(colorScheme).background,
}, },
@ -238,14 +237,14 @@ export default function assistant(colorScheme: ColorScheme) {
}), }),
remainingTokens: { remainingTokens: {
background: background(layer, "on"), background: background(layer, "on"),
margin: { top: 12, right: 12 }, margin: { top: 12, right: 24 },
padding: 4, padding: 4,
cornerRadius: 4, cornerRadius: 4,
...text(layer, "sans", "positive", { size: "xs" }), ...text(layer, "sans", "positive", { size: "xs" }),
}, },
noRemainingTokens: { noRemainingTokens: {
background: background(layer, "on"), background: background(layer, "on"),
margin: { top: 12, right: 12 }, margin: { top: 12, right: 24 },
padding: 4, padding: 4,
cornerRadius: 4, cornerRadius: 4,
...text(layer, "sans", "negative", { size: "xs" }), ...text(layer, "sans", "negative", { size: "xs" }),