empty columns need 100px for drop
This commit is contained in:
@@ -26,11 +26,17 @@
|
|||||||
* (BoardDragAndDrop.js: css("min-height", parent().height())). In CSS, min-height
|
* (BoardDragAndDrop.js: css("min-height", parent().height())). In CSS, min-height
|
||||||
* beats max-height, so that inline value keeps tall columns from shrinking and our
|
* beats max-height, so that inline value keeps tall columns from shrinking and our
|
||||||
* max-height alone does nothing. A stylesheet !important overrides the inline
|
* max-height alone does nothing. A stylesheet !important overrides the inline
|
||||||
* (non-important) min-height, so we reset it to 0 and let max-height win.
|
* (non-important) min-height so max-height can win.
|
||||||
|
*
|
||||||
|
* We override it to a small NON-ZERO value, not 0: Kanboard relies on that same inline
|
||||||
|
* min-height to keep EMPTY columns tall enough to be a drop target, so zeroing it makes
|
||||||
|
* you unable to drop a card into an empty collapsed column. 100px clears Kanboard's 70px
|
||||||
|
* drag placeholder (.draggable-placeholder) with margin, and stays well below max-height
|
||||||
|
* so tall columns still shrink; non-empty columns are unaffected (their content is taller).
|
||||||
*/
|
*/
|
||||||
#board td .board-task-list.board-task-list-compact {
|
#board td .board-task-list.board-task-list-compact {
|
||||||
max-height: calc(100vh - var(--sv-shrink-offset, 240px)) !important;
|
max-height: calc(100vh - var(--sv-shrink-offset, 240px)) !important;
|
||||||
min-height: 0 !important;
|
min-height: 100px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ class Plugin extends Base
|
|||||||
|
|
||||||
public function getPluginVersion()
|
public function getPluginVersion()
|
||||||
{
|
{
|
||||||
return '1.4.0';
|
return '1.4.1';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPluginHomepage()
|
public function getPluginHomepage()
|
||||||
|
|||||||
Reference in New Issue
Block a user