Skip to content

Commit d062f89

Browse files
Refactor modal styling
1 parent 51b944c commit d062f89

File tree

2 files changed

+16
-16
lines changed

2 files changed

+16
-16
lines changed

assets/css/chatmk.css

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,12 @@
242242
}
243243

244244
/* Ensure consistent loading message styling */
245-
.chatmk-message.ai-progress .message-content p,
246-
.chatmk-message.embedding-loading .message-content p {
247-
font-size: 0.9rem;
248-
font-weight: normal;
249-
line-height: 1.5;
250-
margin: 0;
245+
.chatmk-messages .chatmk-message.system.ai-progress .message-content p,
246+
.chatmk-messages .chatmk-message.system.embedding-loading .message-content p {
247+
font-size: 0.9rem !important;
248+
font-weight: normal !important;
249+
line-height: 1.5 !important;
250+
margin: 0 !important;
251251
}
252252

253253
/* Animations */
@@ -329,13 +329,13 @@
329329

330330
.chatmk-header {
331331
padding: 1rem;
332-
flex-direction: column;
332+
flex-direction: row;
333333
align-items: flex-start;
334334
}
335335

336336
.chatmk-header-buttons {
337-
margin-left: 0;
338-
margin-top: 0.5rem;
337+
margin-left: 1rem;
338+
margin-top: 0;
339339
}
340340

341341
.chatmk-header h3 {
@@ -360,11 +360,11 @@
360360
}
361361

362362
/* Ensure consistent loading message styling on mobile */
363-
.chatmk-message.ai-progress .message-content p,
364-
.chatmk-message.embedding-loading .message-content p {
365-
font-size: 0.9rem;
366-
font-weight: normal;
367-
line-height: 1.5;
368-
margin: 0;
363+
.chatmk-messages .chatmk-message.system.ai-progress .message-content p,
364+
.chatmk-messages .chatmk-message.system.embedding-loading .message-content p {
365+
font-size: 0.9rem !important;
366+
font-weight: normal !important;
367+
line-height: 1.5 !important;
368+
margin: 0 !important;
369369
}
370370
}

assets/js/chatmkAI.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ ${userMessage}
223223
// Update existing progress message
224224
const content = lastMessage.querySelector(".message-content");
225225
if (content) {
226-
content.textContent = progressMsg;
226+
content.innerHTML = `<p>${progressMsg}</p>`;
227227
}
228228
} else {
229229
// Add new progress message

0 commit comments

Comments
 (0)