keep board horizontal scroll across refresh: restore scrollLeft after #board-container rebuild; v1.0

This commit is contained in:
2026-07-06 21:12:26 -03:00
parent 1bea749fed
commit 9c27b51eed
6 changed files with 91 additions and 3 deletions

View File

@@ -12,6 +12,13 @@
</p>
</fieldset>
<fieldset>
<?= $this->form->checkbox('organon_tweaks_keep_scroll', t('Keep the board scroll position across refreshes'), 1, isset($values['organon_tweaks_keep_scroll']) && $values['organon_tweaks_keep_scroll'] == 1) ?>
<p class="form-help">
<?= t('When a card is dropped (or the board auto-refreshes), Kanboard rebuilds the board and jumps back to the first column. This restores the horizontal scroll position so the board stays where you were.') ?>
</p>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-blue"><?= t('Save') ?></button>
</div>