fix: address Obsidian review bot issues

- Move inline styles from TypeScript to CSS for better theme compatibility
- Remove "Freewriting" from command names to follow Obsidian conventions
- Fix TypeScript type casting by properly typing model as AnthropicModel
- Update to latest Claude models including Opus 4.1 and Sonnet 4

Changes:
• commands/staggeredPrompts.ts: Replace inline styles with CSS class
• main.ts: Rename commands to "Show Staggered Prompts" and "Add Note Prompts"
• settings.ts: Remove 'as any' cast and update default model
• styles.css: Add .freewriting-prompt-notice class with proper styling
• types.ts: Change model field type from string to AnthropicModel

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Jarvis committed 2025-09-20 10:32:35 +02:00
1 parent cc63d92b6c
commit 49e3f5523c
5 files changed
+25 -25

No files matched your search

+1 -5
View File
@@ -86,13 +86,9 @@ export class StaggeredPromptsCommand {
8000 // Show for 8 seconds
);
// Add some styling to make it more prominent
// Add CSS class for styling
const noticeEl = notice.noticeEl;
if (noticeEl) {
noticeEl.style.maxWidth = '400px';
noticeEl.style.whiteSpace = 'pre-wrap';
noticeEl.style.fontSize = '14px';
noticeEl.style.lineHeight = '1.4';
noticeEl.addClass('freewriting-prompt-notice');
}
}