MediaWiki:Common.css: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
Line 1,345:
font-size: 80% !important;
vertical-align: super !important;
}
/* ======================================================= */
/* FIX FOR AI ASSISTANT: LINE BREAKS & FONT UNIFICATION */
/* ======================================================= */
/* 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: Force long lines to break to the next line */
word-wrap: break-word !important;
overflow-wrap: break-word !important;
white-space: pre-wrap !important; /* Preserves your line breaks but wraps long ones */
/* Ensure the container doesn't push past the screen width */
max-width: 100% !important;
display: block !important;
}
/* 2. Specifically target the text content if it's wrapped in a secondary div */
.ext-aiassistant-message-assistant > div {
word-wrap: break-word !important;
overflow-wrap: break-word !important;
white-space: pre-wrap !important;
}
/* 3. Ensure the '*' lines (often interpreted as list items) behave */
.ext-aiassistant-message-assistant ul,
.ext-aiassistant-message-assistant li {
word-wrap: break-word !important;
white-space: normal !important; /* Standard wrapping for list items */
}
| |||