Spaces:
Sleeping
Sleeping
File size: 2,735 Bytes
bbee504 | 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 | /* MessageBubble Component Styles */
.message-bubble {
margin: 12px 0;
padding: 12px 16px;
border-radius: 8px;
max-width: 85%;
word-wrap: break-word;
animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
/* User Messages */
.message-bubble.user-message {
background-color: #007bff;
color: white;
margin-left: auto;
border-bottom-right-radius: 4px;
}
/* Agent Messages */
.message-bubble.agent-message {
background-color: #f0f0f0;
color: #333;
margin-right: auto;
border-bottom-left-radius: 4px;
}
/* Tool Call Messages */
.message-bubble.tool-call {
background-color: #fff3cd;
color: #856404;
border-left: 4px solid #ffc107;
margin-right: auto;
}
/* Tool Result Messages */
.message-bubble.tool-result {
background-color: #d1ecf1;
color: #0c5460;
border-left: 4px solid #17a2b8;
margin-right: auto;
}
/* Final Response Messages */
.message-bubble.final-response {
background-color: #d4edda;
color: #155724;
border-left: 4px solid #28a745;
margin-right: auto;
}
/* Message Header */
.message-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
font-size: 0.85rem;
font-weight: 600;
opacity: 0.8;
}
.message-type {
font-weight: 700;
}
.message-time {
font-size: 0.75rem;
opacity: 0.7;
margin-left: 8px;
}
/* Message Content */
.message-text {
line-height: 1.4;
white-space: pre-wrap;
word-break: break-word;
}
/* Tool Call Styling */
.tool-call-content {
display: flex;
flex-direction: column;
gap: 8px;
}
.tool-label {
font-weight: 600;
font-size: 0.9rem;
}
.tool-params {
background-color: rgba(0, 0, 0, 0.1);
padding: 8px;
border-radius: 4px;
font-family: "Courier New", monospace;
font-size: 0.85rem;
overflow-x: auto;
}
.tool-params pre {
margin: 0;
padding: 0;
font-size: 0.85rem;
}
/* Tool Result Styling */
.tool-result-content {
display: flex;
flex-direction: column;
gap: 8px;
}
.tool-output {
background-color: rgba(0, 0, 0, 0.08);
padding: 8px;
border-radius: 4px;
font-family: "Courier New", monospace;
font-size: 0.85rem;
max-height: 200px;
overflow-y: auto;
white-space: pre-wrap;
word-break: break-word;
}
/* Responsive Design */
@media (max-width: 600px) {
.message-bubble {
max-width: 98%;
}
.message-header {
flex-direction: column;
align-items: flex-start;
}
.message-time {
margin-left: 0;
margin-top: 4px;
}
}
|