User:Polygnotus/Scripts/Claude4.js: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
Line 273:
/* Hidden state styles */
body.claude-sidebar-hidden #claude-proofreader-sidebar {
display: none;
}
body.claude-sidebar-hidden #ca-claude {
display: list-item !important;
}
/* ResetONLY allapply marginslayout changes when sidebar is hiddenvisible, not just when it exists */
body:not(.claude-/* Reset all margins when sidebar-visible) .mw-page-containeris hidden OR not visible {*/
body:not(.claude-sidebar-visible) .mw-page-container,
body.claude-sidebar-hidden .mw-page-container {
margin-right: 0 !important;
}
body:not(.claude-sidebar-visible) .mw-page-container-inner {,
body.claude-sidebar-hidden .mw-page-container-inner {
max-width: 960px !important;
}
body:not(.claude-sidebar-visible) .mw-content-container {,
body.claude-sidebar-hidden .mw-content-container {
max-width: none !important;
}
body:not(.claude-sidebar-visible) #globalWrapper {,
body.claude-sidebar-hidden #globalWrapper {
margin-right: 0 !important;
}
body:not(.claude-sidebar-visible) .vector-header,
body:not(.claude-sidebar-visible) .vector-sticky-header,
body:not(.claude-sidebar-visible) #mw-head {,
body.claude-sidebar-hidden .vector-header,
body.claude-sidebar-hidden .vector-sticky-header,
body.claude-sidebar-hidden #mw-head {
right: 0 !important;
width: 100% !important;
}
body:not(.claude-sidebar-visible) #content,
body:not(.claude-sidebar-visible) .mw-body {,
body.claude-sidebar-hidden #content,
body.claude-sidebar-hidden .mw-body {
margin-right: 0 !important;
}
Line 469 ⟶ 479:
}
adjustMainContent() {
// Only apply layout changes when sidebar is actually visible
if (this.isVisible) {
document.body.classList.add('claude-sidebar-visible');