Улучшить вложения и запись голосовых в личной переписке

This commit is contained in:
AidarKC
2026-11-17 15:34:36 +03:00
parent 1f06629838
commit 2dd0ed6d59
9 changed files with 251 additions and 40 deletions
+47 -1
View File
@@ -1066,7 +1066,7 @@
grid-column: 1;
min-height: 42px;
display: grid;
grid-template-columns: auto auto minmax(0, 1fr);
grid-template-columns: auto auto auto minmax(0, 1fr) auto;
align-items: center;
gap: 8px;
padding: 0 12px;
@@ -1110,6 +1110,46 @@
font-size: 11px;
color: var(--text-secondary);
}
.dm-voice-cancel, .dm-voice-pause {
width: 32px;
height: 32px;
border: 0;
border-radius: 50%;
background: var(--surface-selected);
color: var(--text-primary);
cursor: pointer;
font-size: 18px;
touch-action: manipulation;
}
.dm-voice-cancel { color: var(--danger); }
.dm-voice-pause[hidden] { display: none; }
.dm-chat-input--voice-paused .dm-voice-recording-dot { animation-play-state: paused; opacity: .35; }
.dm-attachment-expiry {
margin-top: 6px;
color: var(--text-secondary);
font-size: 11px;
line-height: 1.3;
}
.dm-file-queue {
display: flex;
flex-wrap: wrap;
gap: 6px;
padding: 8px 10px 2px;
}
.dm-file-queue[hidden] { display: none; }
.dm-file-queue__chip {
display: inline-flex;
align-items: center;
gap: 6px;
max-width: 100%;
border: 1px solid var(--border-subtle);
border-radius: 12px;
padding: 5px 8px;
background: var(--surface-selected);
font-size: 12px;
}
.dm-file-queue__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-file-queue__chip button { border: 0; background: none; color: var(--text-secondary); cursor: pointer; }
.dm-chat-input--recording .dm-actions-col {
align-self: center;
@@ -1519,6 +1559,12 @@
border: 0;
background: transparent;
}
.dm-chat-input--recording .dm-composer-bar {
border-color: color-mix(in srgb, var(--danger) 45%, var(--border-control));
}
.dm-chat-input--recording .dm-send-btn {
touch-action: none;
}
/* ===== Нижняя панель ввода – одна для чатов, обсуждений и каналов =====