mirror of
https://github.com/wekan/wekan.git
synced 2025-12-19 17:00:13 +01:00
Resizeable size of list width and height. Size is not saved yet. In Progress.
Thanks to NLBlackEagle and xet7 ! Related #4558
This commit is contained in:
parent
c8bb3c7353
commit
01d0dd3b1d
3 changed files with 20 additions and 2 deletions
|
|
@ -7,8 +7,9 @@
|
||||||
border-left: 1px solid #ccc;
|
border-left: 1px solid #ccc;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
float: left;
|
float: left;
|
||||||
min-width: 270px;
|
width: 270px; /* Orinal width: 270px. Changes not saved yet: */
|
||||||
max-width: 270px;
|
resize: both; /* - List width and height resizeable */
|
||||||
|
overflow: auto; /* - List width and height resizeable */
|
||||||
}
|
}
|
||||||
.list:first-child {
|
.list:first-child {
|
||||||
margin-left: 5px;
|
margin-left: 5px;
|
||||||
|
|
|
||||||
|
|
@ -80,6 +80,8 @@ function initSortable(boardComponent, $listsDom) {
|
||||||
Lists.update(list._id, {
|
Lists.update(list._id, {
|
||||||
$set: {
|
$set: {
|
||||||
sort: sortIndex.base,
|
sort: sortIndex.base,
|
||||||
|
width: list._id.width(),
|
||||||
|
height: list._id.height(),
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -79,6 +79,21 @@ Lists.attachSchema(
|
||||||
// XXX We should probably provide a default
|
// XXX We should probably provide a default
|
||||||
optional: true,
|
optional: true,
|
||||||
},
|
},
|
||||||
|
width: {
|
||||||
|
/**
|
||||||
|
* list width, default 270px
|
||||||
|
*/
|
||||||
|
type: String,
|
||||||
|
defaultValue: '270px',
|
||||||
|
optional: true,
|
||||||
|
},
|
||||||
|
height: {
|
||||||
|
/**
|
||||||
|
* list height
|
||||||
|
*/
|
||||||
|
type: String,
|
||||||
|
optional: true,
|
||||||
|
},
|
||||||
updatedAt: {
|
updatedAt: {
|
||||||
/**
|
/**
|
||||||
* last update of the list
|
* last update of the list
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue