mirror of
https://github.com/wekan/wekan.git
synced 2025-04-23 13:37:09 -04:00
min working example with listWidth
This commit is contained in:
parent
f2e4a280d7
commit
0ec9c4c37b
3 changed files with 10 additions and 3 deletions
|
@ -7,8 +7,8 @@
|
|||
border-left: 1px solid #ccc;
|
||||
padding: 0;
|
||||
float: left;
|
||||
min-width: 270px;
|
||||
max-width: 270px;
|
||||
min-width: 100px; /* TODO(mark-i-m): hardcoded? */
|
||||
/*max-width: 270px;*/
|
||||
/* Reverted incomplete change list width: */
|
||||
/* https://github.com/wekan/wekan/issues/4558 */
|
||||
/* Orinal width: 270px. Changes not saved yet: */
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
template(name='list')
|
||||
.list.js-list(id="js-list-{{_id}}")
|
||||
.list.js-list(id="js-list-{{_id}}"
|
||||
style="width:{{listWidth}}px;")
|
||||
+listHeader
|
||||
+listBody
|
||||
|
||||
|
|
|
@ -201,6 +201,12 @@ BlazeComponent.extendComponent({
|
|||
});
|
||||
});
|
||||
},
|
||||
|
||||
listWidth() {
|
||||
const user = Meteor.user();
|
||||
const list = Template.currentData();
|
||||
return user.getListWidth(list.boardId, list._id);
|
||||
},
|
||||
}).register('list');
|
||||
|
||||
Template.miniList.events({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue