Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions webviews/src/routes/chatsHistory/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,23 @@ const ChatsHistory = () => {
{chats.reverse().map((chat) => (
<div className={styles.chatHistoryChat} key={chat.chatId}>
<h4>{chat.title}</h4>
<VSCodeButton
appearance="secondary"
onClick={() => navigate(`/chats/${chat.chatId}`)}
>
Open Chat
</VSCodeButton>
<div className={styles.chatHistoryChatButtons}>
<VSCodeButton
appearance="secondary"
onClick={() => navigate(`/chats/${chat.chatId}`)}
>
Open Chat
</VSCodeButton>
<p>
{new Date(chat.date).toLocaleString(undefined, {
month: "short",
day: "numeric",
hour: "numeric",
minute: "numeric",
second: "numeric",
})}
</p>
</div>
</div>
))}
</div>
Expand Down
5 changes: 5 additions & 0 deletions webviews/src/routes/chatsHistory/style.module.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@
align-items: center;
padding: 16px;
}

.chatHistoryChatButtons {
display: flex;
flex-direction: column;
}