Spaces:
Running
Running
File size: 2,341 Bytes
57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be 85ef17d 57fb0be |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
.chat-container {
height: 100%;
padding: 24px;
max-width: 900px;
margin: 0 auto;
}
.start-wrapper {
display: flex;
justify-content: center;
align-items: center;
min-height: 400px;
mat-card {
max-width: 500px;
width: 100%;
}
.project-select {
width: 100%;
margin-bottom: 16px;
}
}
.chat-card {
height: calc(100vh - 200px);
display: flex;
flex-direction: column;
mat-card-header {
background-color: #f5f5f5;
padding: 16px;
.spacer {
flex: 1;
}
}
}
.chat-history {
flex: 1;
overflow-y: auto;
padding: 16px;
background: #fafafa;
min-height: 300px;
}
.msg-row {
display: flex;
align-items: flex-start;
margin: 12px 0;
gap: 8px;
&.me {
justify-content: flex-end;
flex-direction: row-reverse;
.bubble {
background: #3f51b5;
color: white;
border-bottom-right-radius: 4px;
}
.msg-icon {
color: #3f51b5;
}
}
&.bot {
justify-content: flex-start;
.bubble {
background: #e8eaf6;
color: #000;
border-bottom-left-radius: 4px;
}
.msg-icon {
color: #7986cb;
}
}
.msg-icon {
margin-top: 4px;
}
.bubble {
max-width: 70%;
padding: 12px 16px;
border-radius: 16px;
line-height: 1.5;
word-wrap: break-word;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
// Animation for new messages
animation: slideIn 0.3s ease-out;
}
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.input-row {
display: flex;
padding: 16px;
gap: 12px;
align-items: flex-start;
background-color: #fff;
.flex-1 {
flex: 1;
}
.send-button {
margin-top: 8px;
}
}
// Loading state
.loading-spinner {
display: flex;
justify-content: center;
padding: 20px;
}
// Error state
.error-message {
color: #f44336;
padding: 16px;
text-align: center;
background-color: #ffebee;
border-radius: 4px;
margin: 16px;
}
// Scrollbar styling
.chat-history::-webkit-scrollbar {
width: 8px;
}
.chat-history::-webkit-scrollbar-track {
background: #f1f1f1;
}
.chat-history::-webkit-scrollbar-thumb {
background: #888;
border-radius: 4px;
}
.chat-history::-webkit-scrollbar-thumb:hover {
background: #555;
} |