fix code block width - use 90% for desktop (relative to modal), 85vw for mobile
This commit is contained in:
parent
0ede23a4db
commit
7406950040
2 changed files with 6 additions and 4 deletions
|
|
@ -1120,13 +1120,14 @@ dialog#uncloseai-embedded-modal[data-theme="dark"] .uncloseai-chat-box {
|
|||
}
|
||||
|
||||
/* Code blocks within AI messages - allow horizontal scroll, preserve all whitespace */
|
||||
/* Desktop: use percentage relative to modal */
|
||||
.ai-message pre {
|
||||
overflow-x: auto;
|
||||
max-width: 72vw;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
.ai-message code {
|
||||
max-width: 72vw;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
/* Mobile: use viewport units since modal is fullscreen */
|
||||
|
|
|
|||
|
|
@ -1193,13 +1193,14 @@ dialog#uncloseai-embedded-modal[data-theme="dark"] .uncloseai-chat-box {
|
|||
}
|
||||
|
||||
/* Code blocks within AI messages - allow horizontal scroll, preserve all whitespace */
|
||||
/* Desktop: use percentage relative to modal */
|
||||
.ai-message pre {
|
||||
overflow-x: auto;
|
||||
max-width: 72vw;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
.ai-message code {
|
||||
max-width: 72vw;
|
||||
max-width: 90%;
|
||||
}
|
||||
|
||||
/* Mobile: use viewport units since modal is fullscreen */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue