Auto-adjust fits collapsed columns to the screen; dims manual offset (v1.6.0)

This commit is contained in:
2026-07-12 08:37:18 -03:00
parent 5560c42bcc
commit 355104cf26
6 changed files with 135 additions and 3 deletions

View File

@@ -32,6 +32,14 @@ class Plugin extends Base
'template' => 'plugins/ShrinkVertically/Asset/js/top-scrollbar.js',
));
}
// Optional: auto-adjust the collapsed column height to the screen (measured live on the
// board), overriding the static pixel offset so the vertical scrollbar is not needed.
if ((int) $this->configModel->get('shrink_vertically_auto', 0) === 1) {
$this->hook->on('template:layout:js', array(
'template' => 'plugins/ShrinkVertically/Asset/js/auto-adjust.js',
));
}
}
public function getPluginName()
@@ -51,7 +59,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '1.5.2';
return '1.6.0';
}
public function getPluginHomepage()