Skip to content

Commit c4efc05

Browse files
committed
Move attachment bar to top
1 parent 4050a27 commit c4efc05

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/component/src/SendBox/BasicSendBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ function BasicSendBox(props: BasicSendBoxProps) {
7878
>
7979
<SuggestedActions />
8080
<div className="webchat__send-box__main">
81+
<AttachmentBar className="webchat__send-box__attachment-bar" />
8182
<SendBoxToolbarMiddlewareProxy className={buttonClassName} request={undefined} />
8283
<div className="webchat__send-box__editable">
8384
{speechInterimsVisible ? (
@@ -91,7 +92,6 @@ function BasicSendBox(props: BasicSendBoxProps) {
9192
) : (
9293
<SendButton className={buttonClassName} />
9394
)}
94-
<AttachmentBar className="webchat__send-box__attachment-bar" />
9595
</div>
9696
</div>
9797
);

packages/component/src/Styles/StyleSet/SendBox.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export default function createSendBoxStyle({
3939

4040
// For unknown reason, if the attachment bar does not exist, the second row is still occupying about 1px, we need to hide it.
4141
'&:has(.webchat__send-box__attachment-bar)': {
42-
gridTemplateAreas: '"upload-button text-box send-button" "attachment-bar attachment-bar attachment-bar"',
42+
gridTemplateAreas: '"attachment-bar attachment-bar attachment-bar" "upload-button text-box send-button"',
4343
gridTemplateRows: 'auto auto'
4444
}
4545
},
@@ -59,7 +59,7 @@ export default function createSendBoxStyle({
5959

6060
'& .webchat__send-box__attachment-bar': {
6161
padding: `${paddingRegular}px`,
62-
paddingBlockStart: `0px`
62+
paddingBlockEnd: `0px`
6363
}
6464
}
6565
} satisfies StyleSet;

0 commit comments

Comments
 (0)