MediaWiki:Common.css: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 1,378:
/* 1. Force all text inside assistant messages to wrap and use site font */
.ext-aiassistant-message-assistant {
/* Fix the font: Inherit from body to avoid monospace/different fonts */
font-family: sans-serif !important;
/* Fix the wrapping: ForceStandard longweb lines to break to the next linewrapping */
word-wrap: break-word !important;
overflow-wrap: break-word !important;
/* CHANGED: 'normal' collapses raw newlines so you only see the HTML margins */
/* REMOVE "white-space: pre-wrap" IF the animation is still broken,
white-space: pre-wrapnormal !important;
but removing display: block usually fixes it. */
white-space: pre-wrap !important;
 
/* Ensure the container doesn't push past the screen width */
max-width: 100% !important;
 
/* --- DELETED THE LINE BELOW --- */
/* display: block !important; */ <-- This was the culprit
}
 
/* 2. SpecificallyRemove targettop themargin textfrom contentlists if it's wrappedspecifically in athe secondaryAI divchat */
/* This ensures the list sits tighter to the paragraph above it */
.ext-aiassistant-message-assistant > div {
.ext-aiassistant-message-assistant ul,
word-wrap: break-word !important;
.ext-aiassistant-message-assistant > divol {
overflow-wrap: break-word !important;
whitemargin-spacetop: pre-wrap0 !important; /* Changed from 0.3em to 0 to close the gap */
wordpadding-wraptop: break-word0 !important;
}
 
Line 1,407 ⟶ 1,404:
.ext-aiassistant-message-assistant li {
word-wrap: break-word !important;
white-space: normal !important; /* Standard wrapping for list items */
}