Skip to content

Commit 417f7c3

Browse files
committed
[codecane] feat(cli): added chat scrollbar
- Add vertical scrollbar with minimal track width - Reorganize flex direction properties for proper layout - Move flexDirection: 'column' to inner content options
1 parent 9d620fe commit 417f7c3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cli/src/chat.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -799,14 +799,15 @@ export const Chat = ({
799799
stickyStart="bottom"
800800
scrollX={false}
801801
scrollbarOptions={{ visible: false }}
802+
verticalScrollbarOptions={{ visible: true, trackOptions: { width: 1 } }}
802803
{...appliedScrollboxProps}
803804
style={{
804805
flexGrow: 1,
805806
rootOptions: {
806807
flexGrow: 1,
807808
padding: 0,
808809
gap: 0,
809-
flexDirection: 'column',
810+
flexDirection: 'row',
810811
shouldFill: true,
811812
backgroundColor: 'transparent',
812813
},
@@ -815,6 +816,7 @@ export const Chat = ({
815816
border: false,
816817
shouldFill: true,
817818
backgroundColor: 'transparent',
819+
flexDirection: 'column',
818820
},
819821
contentOptions: {
820822
flexDirection: 'column',

0 commit comments

Comments
 (0)