.mention-toasts { position: fixed; top: 130px; right: 12px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: 320px; pointer-events: none; } .mention-toast { pointer-events: auto; display: flex; align-items: center; gap: 8px; width: 300px; padding: 8px 10px; background: #2b2f3a; color: #fff; border: 1px solid rgba(255, 255, 255, 0.12); border-left: 3px solid #1e7295; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.42); cursor: pointer; animation: mention-toast-in 0.22s ease; } @keyframes mention-toast-in { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: translateX(0); } } .mention-toast-avatar { position: relative; width: 44px; height: 44px; flex-shrink: 0; overflow: hidden; border-radius: 6px; background: rgba(0, 0, 0, 0.25); } /* ricetta testa headOnly: l'avatar-image riempie il box (inset-0) e si croppa sulla testa via background-position (come l'avatar-testa della toolbar), invece di scalare il corpo. */ .mention-toast-avatar .avatar-image { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; background-size: auto !important; background-position: -23px -32px !important; } .mention-toast-body { flex: 1 1 auto; min-width: 0; } .mention-toast-title { font-weight: 700; font-size: 12px; line-height: 1.2; color: #6cb6e0; } .mention-toast-message { font-size: 12px; line-height: 1.3; color: #e6e8ec; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; } .mention-toast-dismiss { flex-shrink: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #c9ccd3; cursor: pointer; font-size: 10px; line-height: 1; } .mention-toast-dismiss:hover { background: rgba(255, 255, 255, 0.18); color: #fff; } /* dropdown autocomplete @ : testine + alias */ .mention-suggest-avatar { position: relative; width: 32px; height: 32px; flex-shrink: 0; overflow: hidden; border-radius: 4px; } .mention-suggest-avatar .avatar-image { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; background-size: auto !important; background-position: -27px -34px !important; } .mention-suggest-alias { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; font-weight: 700; color: #1e7295; background: rgba(30, 114, 149, 0.12); border-radius: 4px; }