- Introduce cache busting (to circumvent aggressive caching on iOS - but ideal in other contexts as well)
- Change the build process to allow cache busting - Optimisations to the build process - Several improvements of UI geared towards mobile experience -
This commit is contained in:
@@ -79,6 +79,16 @@
|
||||
|
||||
.chat-input-area {
|
||||
max-width: 100%; /* Op mobiel volledige breedte gebruiken */
|
||||
/* Respect safe-area at bottom */
|
||||
padding-bottom: env(safe-area-inset-bottom, 0);
|
||||
}
|
||||
|
||||
/* Prevent iOS focus zoom by ensuring form controls are >= 16px */
|
||||
input, textarea, select, button,
|
||||
.chat-input input, .chat-input textarea, .chat-input select, .chat-input button,
|
||||
.mobile-language-selector :is(select, input, button) {
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.chat-input {
|
||||
@@ -97,6 +107,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
/* When keyboard is open, allow a bit more space below */
|
||||
body.keyboard-open .chat-input-area {
|
||||
padding-bottom: calc(env(safe-area-inset-bottom, 0) + 8px);
|
||||
}
|
||||
|
||||
/* Extra small screens */
|
||||
@media (max-width: 480px) {
|
||||
.chat-app-container {
|
||||
@@ -251,15 +266,6 @@
|
||||
margin: 20px 0;
|
||||
}
|
||||
|
||||
.form-message .message-content {
|
||||
max-width: 90%;
|
||||
background: white;
|
||||
border: 1px solid #e9ecef;
|
||||
border-radius: 12px;
|
||||
padding: 20px;
|
||||
box-shadow: 0 4px 12px rgba(0,0,0,0.1);
|
||||
}
|
||||
|
||||
/* System messages */
|
||||
.system-message {
|
||||
text-align: center;
|
||||
@@ -437,24 +443,6 @@
|
||||
opacity: 0.8;
|
||||
}
|
||||
|
||||
/* Mobile responsiveness */
|
||||
@media (max-width: 768px) {
|
||||
.message {
|
||||
padding: 0 15px;
|
||||
}
|
||||
|
||||
/* moved to ChatMessage.vue scoped styles */
|
||||
|
||||
.message.user .message-content {
|
||||
margin-left: 40px;
|
||||
}
|
||||
|
||||
.message.ai .message-content,
|
||||
.message.bot .message-content {
|
||||
margin-right: 40px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 480px) {
|
||||
.message {
|
||||
padding: 0 10px;
|
||||
|
||||
@@ -63,13 +63,6 @@
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
/* Dynamic form container transitions */
|
||||
.dynamic-form-container {
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
|
||||
transform: translateY(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Chat input transitions */
|
||||
.chat-input {
|
||||
transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
|
||||
|
||||
@@ -146,11 +146,6 @@
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
/* Ensure forms in messages use full available width */
|
||||
.message .dynamic-form-container {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.message .dynamic-form {
|
||||
width: 100%;
|
||||
|
||||
@@ -14,8 +14,9 @@
|
||||
/* App container layout */
|
||||
.app-container {
|
||||
display: flex;
|
||||
height: 100vh; /* fallback */
|
||||
height: 100dvh; /* prefer dynamic viewport unit */
|
||||
/* Use visual viewport variable when available */
|
||||
min-height: 0;
|
||||
height: calc(var(--vvh, 1vh) * 100);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@@ -85,8 +86,7 @@
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: 0;
|
||||
height: 100vh; /* fallback for desktop */
|
||||
height: 100dvh; /* prefer dynamic viewport on desktop */
|
||||
height: auto; /* prefer dynamic viewport on desktop */
|
||||
}
|
||||
|
||||
.chat-container {
|
||||
@@ -97,16 +97,19 @@
|
||||
}
|
||||
|
||||
html, body {
|
||||
height: 100%;
|
||||
height: calc(var(--vvh, 1vh) * 100); min-height: 0;
|
||||
}
|
||||
|
||||
/* Base reset & overflow control */
|
||||
* { box-sizing: border-box; }
|
||||
html { overflow-x: hidden; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
|
||||
line-height: 1.6;
|
||||
color: var(--text-color);
|
||||
background-color: var(--background-color);
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
overflow: hidden; /* prevent double scroll; inner containers handle scrolling */
|
||||
}
|
||||
|
||||
.container {
|
||||
@@ -281,14 +284,6 @@ body {
|
||||
}
|
||||
|
||||
:root { --mobile-header-height: 60px; } /* default/minimum */
|
||||
|
||||
/* Content area takes remaining space */
|
||||
.content-area {
|
||||
flex: 1;
|
||||
height: calc(100vh - var(--mobile-header-height)); /* fallback */
|
||||
height: calc(100dvh - var(--mobile-header-height)); /* prefer dynamic viewport */
|
||||
min-height: 0;
|
||||
}
|
||||
}
|
||||
|
||||
/* Responsieve design regels worden nu gedefinieerd in chat-components.css */
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
/* Dynamisch formulier stijlen */
|
||||
|
||||
.dynamic-form {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.form-header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
Reference in New Issue
Block a user