fix(tui): normalize attachment labels
This commit is contained in:
parent
79301fbed5
commit
7668eb728d
1 changed files with 2 additions and 2 deletions
|
|
@ -1448,10 +1448,10 @@ function UserMessage(props: { message: SessionMessageUser }) {
|
|||
>
|
||||
<For each={files()}>
|
||||
{(file) => {
|
||||
const label = file.mime === "application/x-directory" ? "Directory" : file.mime
|
||||
const label = file.mime === "application/x-directory" ? "dir" : "file"
|
||||
return (
|
||||
<text fg={theme.text}>
|
||||
<span style={{ bg: theme.secondary, fg: theme.background }}>{` ${label} `}</span>
|
||||
<span style={{ bg: theme.secondary, fg: theme.background, bold: true }}>{` ${label} `}</span>
|
||||
<span style={{ bg: theme.backgroundElement, fg: theme.textMuted }}>
|
||||
{" "}
|
||||
{file.name ?? (file.source.type === "uri" ? file.source.uri : "attachment")}{" "}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue