48 lines
1.0 KiB
PHP
48 lines
1.0 KiB
PHP
<?php
|
|
|
|
namespace Kanboard\Plugin\ShrinkVertically;
|
|
|
|
use Kanboard\Core\Plugin\Base;
|
|
|
|
class Plugin extends Base
|
|
{
|
|
public function initialize()
|
|
{
|
|
// Inject a small CSS override that reduces the height of vertically
|
|
// collapsed board columns so the horizontal scrollbar stays visible.
|
|
$this->hook->on('template:layout:css', array(
|
|
'template' => 'plugins/ShrinkVertically/Asset/css/shrink-vertically.css',
|
|
));
|
|
}
|
|
|
|
public function getPluginName()
|
|
{
|
|
return 'ShrinkVertically';
|
|
}
|
|
|
|
public function getPluginDescription()
|
|
{
|
|
return t('Shrink vertically-collapsed board columns so the horizontal scrollbar stays visible.');
|
|
}
|
|
|
|
public function getPluginAuthor()
|
|
{
|
|
return 'Ruben (drbeco)';
|
|
}
|
|
|
|
public function getPluginVersion()
|
|
{
|
|
return '0.1.0';
|
|
}
|
|
|
|
public function getPluginHomepage()
|
|
{
|
|
return 'https://code.beco.cc/beco/shrink-vertically';
|
|
}
|
|
|
|
public function getCompatibleVersion()
|
|
{
|
|
return '>=1.2.0';
|
|
}
|
|
}
|