fix(ai-chat): harden prompt security against injections, fix login methods detection & align desktop input dock (v3.8.43)
This commit is contained in:
@@ -151,6 +151,10 @@
|
||||
transform: scale(1.08);
|
||||
box-shadow: 0 12px 30px rgba(180, 62, 142, 0.5) !important;
|
||||
}
|
||||
/* Ocultar botón lanzador inmediatamente al abrir el chat (Desktop y Móvil) */
|
||||
.ai-chat-launcher.chat-open {
|
||||
display: none !important;
|
||||
}
|
||||
.ai-launcher-icon {
|
||||
font-size: 1.45rem;
|
||||
line-height: 1;
|
||||
@@ -458,6 +462,11 @@
|
||||
border: 1px solid #CBD5E1;
|
||||
border-radius: 28px;
|
||||
padding: 6px 8px 6px 12px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-height: 48px;
|
||||
box-sizing: border-box;
|
||||
transition: border-color 0.2s ease, box-shadow 0.2s ease;
|
||||
}
|
||||
.ai-input-pill-container:focus-within {
|
||||
@@ -465,8 +474,8 @@
|
||||
box-shadow: 0 0 0 3px rgba(180, 62, 142, 0.15);
|
||||
}
|
||||
.ai-input-plus-btn {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 50%;
|
||||
border: none;
|
||||
background: #F1F5F9;
|
||||
@@ -477,6 +486,7 @@
|
||||
cursor: pointer;
|
||||
font-size: 0.95rem;
|
||||
flex-shrink: 0;
|
||||
padding: 0;
|
||||
transition: all 0.15s ease;
|
||||
}
|
||||
.ai-input-plus-btn:hover {
|
||||
@@ -485,34 +495,53 @@
|
||||
}
|
||||
.ai-chat-textarea {
|
||||
background: transparent !important;
|
||||
border: none !important;
|
||||
box-shadow: none !important;
|
||||
outline: none !important;
|
||||
resize: none;
|
||||
height: 24px;
|
||||
min-height: 24px;
|
||||
max-height: 80px;
|
||||
font-size: 0.95rem;
|
||||
color: #0F172A;
|
||||
line-height: 1.4;
|
||||
line-height: 24px;
|
||||
padding: 0 4px !important;
|
||||
margin: 0 !important;
|
||||
flex: 1;
|
||||
overflow-y: hidden;
|
||||
display: block;
|
||||
}
|
||||
.ai-chat-textarea::placeholder {
|
||||
color: #94A3B8;
|
||||
font-size: 0.95rem;
|
||||
line-height: 24px;
|
||||
}
|
||||
.ai-send-btn {
|
||||
background: transparent;
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
background: #B43E8E;
|
||||
border: none;
|
||||
color: #B43E8E;
|
||||
border-radius: 50%;
|
||||
color: #ffffff !important;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-shrink: 0;
|
||||
transition: transform 0.15s ease, color 0.15s ease;
|
||||
transition: transform 0.15s ease, background-color 0.15s ease;
|
||||
}
|
||||
.ai-send-btn i {
|
||||
font-size: 1.25rem !important;
|
||||
line-height: 1;
|
||||
}
|
||||
.ai-send-btn:hover {
|
||||
color: #8C256B;
|
||||
background: #8C256B;
|
||||
transform: scale(1.08);
|
||||
}
|
||||
.ai-send-btn:disabled {
|
||||
color: #CBD5E1;
|
||||
background: #E2E8F0;
|
||||
color: #94A3B8 !important;
|
||||
cursor: not-allowed;
|
||||
transform: none;
|
||||
}
|
||||
@@ -602,10 +631,15 @@
|
||||
color: #F8FAFC;
|
||||
}
|
||||
[data-bs-theme="dark"] .ai-send-btn {
|
||||
color: #FF8AB6;
|
||||
background: #EC4899;
|
||||
color: #ffffff !important;
|
||||
}
|
||||
[data-bs-theme="dark"] .ai-send-btn:hover {
|
||||
color: #FFA5C8;
|
||||
background: #DB2777;
|
||||
}
|
||||
[data-bs-theme="dark"] .ai-send-btn:disabled {
|
||||
background: #334155;
|
||||
color: #64748B !important;
|
||||
}
|
||||
[data-bs-theme="dark"] .ai-sheet-handle {
|
||||
background: rgba(255, 255, 255, 0.3);
|
||||
|
||||
Reference in New Issue
Block a user