ваше сообщение коммита

This commit is contained in:
2025-04-03 17:25:38 +03:00
parent e05f06c588
commit 808f2594c6
8 changed files with 1743 additions and 548 deletions

View File

@@ -216,6 +216,7 @@ input, textarea {
padding: 10px 15px;
border-radius: 8px;
max-width: 80%;
position: relative;
}
.user-message {
@@ -229,18 +230,58 @@ input, textarea {
align-self: flex-start;
}
.system-message {
background-color: #FFF3E0;
align-self: center;
margin-left: auto;
margin-right: auto;
font-style: italic;
color: #FF5722;
text-align: center;
max-width: 90%;
}
.message-content {
margin-bottom: 5px;
white-space: pre-wrap;
word-break: break-word;
}
.message-meta {
display: flex;
justify-content: space-between;
align-items: center;
}
.message-time {
font-size: 12px;
color: #777;
text-align: right;
}
.message-status {
font-size: 12px;
color: #777;
}
.sending-indicator {
color: #2196F3;
font-style: italic;
}
.error-indicator {
color: #F44336;
font-weight: bold;
}
.is-local {
opacity: 0.7;
}
.has-error {
border: 1px solid #F44336;
}
.chat-input {
display: flex;
background-color: white;
@@ -1015,3 +1056,121 @@ input, textarea {
color: #666;
font-size: 14px;
}
/* Стили для отображения подключенного кошелька */
.wallet-connected .wallet-button {
background-color: #4CAF50 !important;
color: white !important;
}
.wallet-connected #auth-display {
display: inline-block;
padding: 8px 12px;
background-color: rgba(76, 175, 80, 0.1);
border: 1px solid #4CAF50;
border-radius: 4px;
margin-right: 10px;
color: #4CAF50;
font-weight: 500;
}
/* Индикатор подключения */
.connection-indicator {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 50%;
margin-right: 8px;
background-color: #ccc;
}
.wallet-connected .connection-indicator {
background-color: #4CAF50;
}
/* Стили для кнопок авторизации */
#auth-buttons {
display: flex;
gap: 10px;
margin-bottom: 20px;
}
#logout-button {
display: none;
background-color: #f44336;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-weight: 500;
}
#logout-button:hover {
background-color: #d32f2f;
}
/* Анимация для индикации подключения */
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
}
70% {
box-shadow: 0 0 0 10px rgba(76, 175, 80, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
}
}
.wallet-connected .connection-indicator {
animation: pulse 2s infinite;
}
/* Стили для отладочной информации */
.debug-info {
margin-top: 20px;
padding: 10px;
background-color: #f5f5f5;
border-radius: 8px;
font-size: 0.9em;
}
.debug-info h4 {
margin-top: 0;
margin-bottom: 8px;
color: #666;
}
.debug-item {
margin-bottom: 8px;
word-break: break-all;
}
.debug-item code {
background-color: #e0e0e0;
padding: 2px 4px;
border-radius: 4px;
font-family: monospace;
color: #333;
}
.debug-buttons {
display: flex;
gap: 8px;
margin-top: 8px;
}
.small-button {
padding: 5px 10px;
background-color: #5e5e5e;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 0.8em;
}
.small-button:hover {
background-color: #444;
}