main #94

Merged
Patrick_Pluto merged 8 commits from YasinOnm08/interstellar_ai:main into main 2024-10-03 13:33:01 +02:00
2 changed files with 4 additions and 4 deletions

View file

@ -6,7 +6,7 @@ type ChatMessage = {
let chatHistory: ChatMessage[] = []; let chatHistory: ChatMessage[] = [];
function addMessageHistory(name: string, message: any): void { function addMessageToHistory(name: string, message: any): void {
const newMessage: ChatMessage = { const newMessage: ChatMessage = {
name: name, name: name,
messages: message, messages: message,
@ -16,7 +16,7 @@ function addMessageHistory(name: string, message: any): void {
console.log(`Added message from ${name}: ${message}`); 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); const index = chatHistory.findIndex((msg) => msg.timestamp === timestamp);
if (index > -1) { if (index > -1) {
chatHistory.splice(index, 1); chatHistory.splice(index, 1);

View file

@ -84,9 +84,9 @@ header{
.header-login-button{ .header-login-button{
height: 100%; height: 100%;
width:4vw; width:max-content;
font-size: var(--font-size); font-size: var(--font-size);
padding: 3px; padding: 0.5vw 1vw;
background-color: var(--input-button-color); background-color: var(--input-button-color);
color: var(--text-color); color: var(--text-color);
border: none; border: none;