Add Note Width setting to cap editor content width (#137)

This commit is contained in:
Yuri Karamian
2026-06-20 15:01:01 +02:00
parent f0f19125d5
commit 1c46935cc5
8 changed files with 74 additions and 2 deletions
+8
View File
@@ -122,6 +122,14 @@ pub fn set_ui_scale(state: State<'_, AppState>, scale: f64) -> Result<(), String
Ok(())
}
#[tauri::command]
pub fn set_content_width(state: State<'_, AppState>, width: Option<u32>) -> Result<(), String> {
let mut config = state.config.lock().map_err(|e| e.to_string())?;
config.content_width = width;
save_app_config(&config)?;
Ok(())
}
// ── Notebooks ──
#[tauri::command]