📎 Anexos: botão de clipe + drag & drop + preview (imagens e documentos)
This commit is contained in:
@@ -1255,6 +1255,93 @@ code {
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
/* Botão de anexar */
|
||||
.btn-attach {
|
||||
background: none;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
padding: 8px;
|
||||
border-radius: 8px;
|
||||
color: var(--text-muted);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
transition: all 0.2s;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.btn-attach svg {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
|
||||
.btn-attach:hover {
|
||||
background: var(--hover-bg);
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.btn-attach.has-files {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* Preview de anexos na barra de input */
|
||||
.attachments-preview {
|
||||
display: flex;
|
||||
gap: 6px;
|
||||
padding: 6px 12px;
|
||||
flex-wrap: wrap;
|
||||
border-top: 1px solid var(--border-color);
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
.attachment-item {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
padding: 4px 8px 4px 4px;
|
||||
background: var(--hover-bg);
|
||||
border-radius: 8px;
|
||||
font-size: 12px;
|
||||
color: var(--text-color);
|
||||
border: 1px solid var(--border-color);
|
||||
max-width: 150px;
|
||||
}
|
||||
|
||||
.attachment-item img {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
object-fit: cover;
|
||||
border-radius: 6px;
|
||||
border: 1px solid var(--border-color);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.attachment-item .file-name {
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
max-width: 90px;
|
||||
}
|
||||
|
||||
.attachment-item .remove-attachment {
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: -6px;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
background: #ef4444;
|
||||
color: white;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
}
|
||||
|
||||
.msg-action-btn.btn-speak svg {
|
||||
transition: transform 0.2s ease;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user