fix: address Obsidian Review Bot feedback for plugin submission
- Replace hardcoded '.obsidian' paths with Vault#configDir for proper config directory support - Move inline styles to CSS classes for better theme compatibility - Remove unnecessary type casting by using proper type predicates - Add proper TypeScript type narrowing for filtered arrays This addresses all required issues identified by the Obsidian Review Bot: * TempDirectoryManager now accepts configDir parameter from app.vault.configDir * PdfToImageConverter uses configDir instead of hardcoded '.obsidian' * ExportConfigModal uses CSS classes (.export-progress-visible, .export-form-hidden) instead of inline styles * Progress bar width controlled via CSS custom property --progress-width * Removed 'as TFile[]' casting by implementing isMarkdownFile type predicate 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
6 files changed
+37
-20
No files matched your search
@@ -250,7 +250,8 @@ export class PandocTypstConverter {
|
||||
if (!this.tempDir) {
|
||||
if (this.pandocOptions.vaultBasePath) {
|
||||
// Use TempDirectoryManager for plugin temp directories
|
||||
const tempManager = TempDirectoryManager.create(this.pandocOptions.vaultBasePath);
|
||||
const configDir = this.plugin?.app?.vault?.configDir || '.obsidian';
|
||||
const tempManager = TempDirectoryManager.create(this.pandocOptions.vaultBasePath, configDir);
|
||||
this.tempDir = tempManager.ensureTempDir('pandoc');
|
||||
} else {
|
||||
// Fallback to system temp if plugin folder not available
|
||||
|
||||
Reference in new issue
Block a user