- Adaptation of the form message layout, in such a way that labels are shown on top of their values iso left, allowing a decent rendering on mobile devices
- refactoring message-content CSS
This commit is contained in:
@@ -383,8 +383,8 @@ export default {
|
||||
|
||||
/* User messages with forms get fixed width of 90% */
|
||||
.message.user.has-form {
|
||||
width: 90%;
|
||||
max-width: none;
|
||||
width: auto; /* niet breder maken dan standaard */
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
/* Styling for temporarily positioned AI messages */
|
||||
@@ -421,9 +421,18 @@ export default {
|
||||
padding: 12px;
|
||||
}
|
||||
.message-content {
|
||||
width: 100%;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 14px;
|
||||
font-size: 12px;
|
||||
max-width: 90%;
|
||||
padding: 8px;
|
||||
border-radius: 10px;
|
||||
word-wrap: break-word;
|
||||
position: relative;
|
||||
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
|
||||
transition: all 0.2s ease;
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* EveAI Logo styling voor AI berichten */
|
||||
@@ -448,12 +457,26 @@ export default {
|
||||
|
||||
/* Formulier styling */
|
||||
.form-display {
|
||||
margin: 15px 0;
|
||||
color: var(--human-message-text-color);
|
||||
padding: 15px;
|
||||
font-family: inherit;
|
||||
}
|
||||
|
||||
/* Neutraliseer dynamic-form look binnen message bubble voor user-form-values */
|
||||
.user-form-values .message-form .dynamic-form {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
padding: 0;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
.user-form-values .message-form .form-readonly,
|
||||
.user-form-values .message-form .form-field-readonly,
|
||||
.user-form-values .message-form .field-label,
|
||||
.user-form-values .message-form .field-value {
|
||||
max-width: 90%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* Tabel styling voor formulieren */
|
||||
.form-result-table {
|
||||
width: 100%;
|
||||
@@ -612,13 +635,65 @@ export default {
|
||||
max-width: 95%;
|
||||
}
|
||||
|
||||
/* User messages with forms get fixed width of 95% on mobile */
|
||||
/* User messages with forms: hou zelfde breedte als gewone tekst */
|
||||
.message.user.has-form {
|
||||
width: 95%;
|
||||
width: auto;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.form-result-table td:first-child {
|
||||
width: 40%;
|
||||
}
|
||||
}
|
||||
/* migrated from global css: message-content visuals */
|
||||
.message.user .message-content {
|
||||
background: var(--human-message-background);
|
||||
color: var(--human-message-text-color);
|
||||
border-bottom-right-radius: 4px;
|
||||
}
|
||||
|
||||
.message.ai .message-content,
|
||||
.message.bot .message-content {
|
||||
background: var(--ai-message-background);
|
||||
color: var(--ai-message-text-color);
|
||||
border-bottom-left-radius: 4px;
|
||||
margin-right: 60px;
|
||||
}
|
||||
|
||||
/* Hover effects for message bubbles */
|
||||
.message-content:hover {
|
||||
transform: translateY(-1px);
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.15);
|
||||
}
|
||||
|
||||
/* Handle empty message content during processing */
|
||||
.message-content:has(.message-text:empty) .message-progress {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.message-content:has(.message-text:empty):not(:has(.message-progress.completed)):not(:has(.message-progress.error)) {
|
||||
background: transparent;
|
||||
box-shadow: none;
|
||||
border: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* Mobile responsiveness moved from global */
|
||||
@media (max-width: 768px) {
|
||||
.message.user .message-content {
|
||||
margin-left: 40px;
|
||||
}
|
||||
.message.ai .message-content,
|
||||
.message.bot .message-content {
|
||||
margin-right: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.message-content {
|
||||
max-width: 90%;
|
||||
margin-left: 20px !important;
|
||||
margin-right: 20px !important;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user