Content deleted Content added
Polygnotus (talk | contribs) No edit summary |
Polygnotus (talk | contribs) No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 187:
#ca-claude a:hover {
text-decoration: underline !important;
}▼
body.claude-sidebar-visible {▼
margin-right: ${this.sidebarWidth} !important;▼
}▼
body.claude-sidebar-visible .mw-page-container,▼
body.claude-sidebar-visible #globalWrapper {▼
margin-right: 0 !important;▼
padding-right: ${this.sidebarWidth} !important;▼
box-sizing: border-box !important;▼
}▼
body.claude-sidebar-visible .vector-header,▼
body.claude-sidebar-visible .vector-sticky-header,▼
body.claude-sidebar-visible #mw-head {▼
right: ${this.sidebarWidth} !important;▼
width: calc(100% - ${this.sidebarWidth}) !important;▼
}
Line 219 ⟶ 198:
/* Hidden state styles */
body.claude-sidebar-hidden #claude-proofreader-sidebar {
display: none;
}
body.claude-sidebar-hidden #ca-claude {
display: list-item !important;
}▼
/* Reset margins when sidebar is hidden */▼
margin-right: 0 !important;▼
}▼
margin-right: 0 !important;▼
padding-right: 0 !important;▼
}▼
right: 0 !important;▼
}
`;
Line 259 ⟶ 222:
const claudeTab = document.createElement('li');
claudeTab.id = 'ca-claude';
const claudeLink = document.createElement('a');
claudeLink.href = '#';
claudeLink.title = 'Proofread with Claude AI';
▲ claudeLink.textContent = 'Claude';
claudeLink.addEventListener('click', (e) => {
e.preventDefault();
this.showSidebar();
});
const claudeSpan = document.createElement('span');
claudeSpan.textContent = 'Claude';
claudeLink.appendChild(claudeSpan);
claudeTab.appendChild(claudeLink);
Line 333 ⟶ 300:
style.setAttribute('data-claude-proofreader', 'true');
style.textContent = `
margin-right: ${this.sidebarWidth} !important;
▲ box-sizing: border-box !important;
}
margin-right: 0 !important;
padding-right:
}
▲ margin-right: 0 !important;
▲ }
/* Vector 2022 - article content */
▲ body.claude-sidebar-visible .mw-body {
▲ }
/* Vector 2022 - main content */
▲ }
/* Legacy Vector and other themes */
▲ body.claude-sidebar-visible #globalWrapper {
▲ margin-right: ${this.sidebarWidth} !important;
▲ }
/* Header adjustments */
body.claude-sidebar-visible .vector-header,
body.claude-sidebar-visible .vector-sticky-header,
Line 347 ⟶ 343:
right: ${this.sidebarWidth} !important;
width: calc(100% - ${this.sidebarWidth}) !important;
}
`;
Line 373 ⟶ 370:
}
adjustMainContent() {
// Only apply layout changes when sidebar is actually visible
if (this.isVisible) {
document.body.classList.add('claude-sidebar-visible');
Line 393 ⟶ 391:
document.getElementById('claude-proofread-btn').addEventListener('click', () => {
this.proofreadArticle();
});
}
Line 416 ⟶ 411:
localStorage.removeItem('claude_current_results');
this.updateOutput('');
this.updateStatus('Results cleared. Ready to proofread.');
}
Line 433 ⟶ 427:
outputEl.textContent = content;
}
// Store results
if (content) {
this.currentResults = content;
localStorage.setItem('claude_current_results', content);
}
}
|