fix(mobile): optimize mobile UI/UX for UdeCi chatbot and dashboard (v3.8.30)
This commit is contained in:
@@ -42,8 +42,8 @@
|
||||
<button type="button" class="btn btn-sm btn-outline-light border-0 py-1 px-2" id="aiChatClearBtn" title="Reiniciar chat">
|
||||
<i class="bi bi-arrow-clockwise"></i>
|
||||
</button>
|
||||
<button type="button" class="btn btn-sm btn-outline-light border-0 py-1 px-2" id="aiChatCloseBtn" title="Minimizar">
|
||||
<i class="bi bi-dash-lg"></i>
|
||||
<button type="button" class="btn btn-sm btn-outline-light border-0 py-1 px-2" id="aiChatCloseBtn" title="Cerrar">
|
||||
<i class="bi bi-x-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -333,15 +333,64 @@
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
@media (max-width: 576px) {
|
||||
@media (max-width: 768px) {
|
||||
.ai-chat-container {
|
||||
bottom: 16px;
|
||||
right: 16px;
|
||||
z-index: 1070;
|
||||
}
|
||||
.ai-chat-launcher {
|
||||
width: 52px;
|
||||
height: 52px;
|
||||
}
|
||||
.ai-chat-launcher.chat-open {
|
||||
display: none !important;
|
||||
}
|
||||
.ai-chat-panel {
|
||||
width: calc(100vw - 32px);
|
||||
height: calc(100vh - 110px);
|
||||
position: fixed !important;
|
||||
top: 0 !important;
|
||||
left: 0 !important;
|
||||
right: 0 !important;
|
||||
bottom: 0 !important;
|
||||
width: 100vw !important;
|
||||
max-width: 100vw !important;
|
||||
height: 100dvh !important;
|
||||
max-height: 100dvh !important;
|
||||
border-radius: 0 !important;
|
||||
z-index: 1080 !important;
|
||||
box-shadow: none !important;
|
||||
border: none !important;
|
||||
}
|
||||
.ai-chat-header {
|
||||
border-radius: 0 !important;
|
||||
padding: 0.75rem 1rem !important;
|
||||
}
|
||||
.ai-chat-messages {
|
||||
padding: 0.85rem !important;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
}
|
||||
.ai-msg {
|
||||
max-width: 90% !important;
|
||||
font-size: 0.88rem !important;
|
||||
}
|
||||
.ai-option-btn {
|
||||
font-size: 0.78rem !important;
|
||||
padding: 6px 12px !important;
|
||||
min-height: 32px;
|
||||
}
|
||||
.ai-chat-footer {
|
||||
padding: 0.65rem 0.85rem !important;
|
||||
padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px)) !important;
|
||||
}
|
||||
.ai-chat-textarea {
|
||||
font-size: 16px !important; /* Previene el auto-zoom involuntario en Safari iOS */
|
||||
padding: 8px 12px !important;
|
||||
}
|
||||
}
|
||||
|
||||
body.ai-chat-mobile-open {
|
||||
overflow: hidden !important;
|
||||
touch-action: none;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user