mirror of
https://github.com/olehomelchenko/astrolabe-nvc.git
synced 2025-12-21 21:22:23 +00:00
refactor: Migrate preview fit mode state management and UI updates to an Alpine.js store.
This commit is contained in:
@@ -303,20 +303,6 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
}
|
||||
});
|
||||
|
||||
// View mode toggle buttons (now handled by Alpine.js in index.html)
|
||||
|
||||
// Preview fit mode buttons
|
||||
document.getElementById('preview-fit-default').addEventListener('click', () => {
|
||||
setPreviewFitMode('default');
|
||||
});
|
||||
|
||||
document.getElementById('preview-fit-width').addEventListener('click', () => {
|
||||
setPreviewFitMode('width');
|
||||
});
|
||||
|
||||
document.getElementById('preview-fit-full').addEventListener('click', () => {
|
||||
setPreviewFitMode('full');
|
||||
});
|
||||
|
||||
// Publish and Revert buttons
|
||||
document.getElementById('publish-btn').addEventListener('click', publishDraft);
|
||||
|
||||
Reference in New Issue
Block a user