File tree 2 files changed +22
-6
lines changed
webviews/src/routes/chatsHistory
2 files changed +22
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,23 @@ const ChatsHistory = () => {
32
32
{ chats . reverse ( ) . map ( ( chat ) => (
33
33
< div className = { styles . chatHistoryChat } key = { chat . chatId } >
34
34
< h4 > { chat . title } </ h4 >
35
- < VSCodeButton
36
- appearance = "secondary"
37
- onClick = { ( ) => navigate ( `/chats/${ chat . chatId } ` ) }
38
- >
39
- Open Chat
40
- </ VSCodeButton >
35
+ < div className = { styles . chatHistoryChatButtons } >
36
+ < VSCodeButton
37
+ appearance = "secondary"
38
+ onClick = { ( ) => navigate ( `/chats/${ chat . chatId } ` ) }
39
+ >
40
+ Open Chat
41
+ </ VSCodeButton >
42
+ < p >
43
+ { new Date ( chat . date ) . toLocaleString ( undefined , {
44
+ month : "short" ,
45
+ day : "numeric" ,
46
+ hour : "numeric" ,
47
+ minute : "numeric" ,
48
+ second : "numeric" ,
49
+ } ) }
50
+ </ p >
51
+ </ div >
41
52
</ div >
42
53
) ) }
43
54
</ div >
Original file line number Diff line number Diff line change 17
17
align-items : center;
18
18
padding : 16px ;
19
19
}
20
+
21
+ .chatHistoryChatButtons {
22
+ display : flex;
23
+ flex-direction : column;
24
+ }
You can’t perform that action at this time.
0 commit comments