This commit is contained in:
rex
2025-11-26 17:43:55 +08:00
parent f7bdb20332
commit f811bd6659
5 changed files with 193 additions and 60 deletions

58
assets/css/chat.css Normal file
View File

@@ -0,0 +1,58 @@
#messages {
padding: 10px;
margin-bottom: 10px;
height: calc(100% - 140px);
overflow-y: auto;
}
#messages div {
border: 2px solid #000000;
font-size: 14px;
color: #000;
margin-bottom: 10px;
padding: 10px;
border-radius: 5px;
}
#messages>.message.loading {
border-color: #003cff;
animation: pulse 1s infinite;
}
@keyframes pulse {
0% {
border-color: #6e90ff;
}
50% {
border-color: #002ec5;
}
100% {
border-color: #6e90ff;
}
}
#messages>.message.user {
border-color: #c90000;
}
#messages>.message.assistant {
border-color: #06af2d;
}
#input-container {
border-top: 2px solid #000000;
height: 100px;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
#input {
margin-bottom: 10px;
height: 50px;
width: 90%;
border: 1px solid #ccc;
border-radius: 5px;
}
}

View File

@@ -1,5 +1,17 @@
html {
height: 100%;
width: 100%;
}
body {
height: 100%;
width: 100%;
margin: 0;
padding: 0;
}
#project-info-img {
width: 64px;
height: 64px;
object-fit: cover;
}
}