forked from React-Group/interstellar_ai
Merge branch 'main' of interstellardevelopment.org:React-Group/interstellar_ai
This commit is contained in:
commit
61919ad094
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@ type ChatMessage = {
|
|||
|
||||
let chatHistory: ChatMessage[] = [];
|
||||
|
||||
function addMessageHistory(name: string, message: any): void {
|
||||
function addMessageToHistory(name: string, message: any): void {
|
||||
const newMessage: ChatMessage = {
|
||||
name: name,
|
||||
messages: message,
|
||||
|
@ -16,7 +16,7 @@ function addMessageHistory(name: string, message: any): void {
|
|||
console.log(`Added message from ${name}: ${message}`);
|
||||
}
|
||||
|
||||
function removeMessageHistory(timestamp: number): void {
|
||||
function removeMessageFromHistory(timestamp: number): void {
|
||||
const index = chatHistory.findIndex((msg) => msg.timestamp === timestamp);
|
||||
if (index > -1) {
|
||||
chatHistory.splice(index, 1);
|
||||
|
|
|
@ -84,9 +84,9 @@ header{
|
|||
|
||||
.header-login-button{
|
||||
height: 100%;
|
||||
width:4vw;
|
||||
width:max-content;
|
||||
font-size: var(--font-size);
|
||||
padding: 3px;
|
||||
padding: 0.5vw 1vw;
|
||||
background-color: var(--input-button-color);
|
||||
color: var(--text-color);
|
||||
border: none;
|
||||
|
|
Loading…
Reference in a new issue