mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 09:59:47 -05:00
Add "Bigboard" to the Board View menu, right after Dashboard, matching the existing 19-entry pattern (menu row in boardHeader.jade, click handler + boardViewName() entry in boardHeader.js, isViewBigboard() helper + boardBody.jade branch, the two whitelist arrays in client/lib/utils.js, and profile.boardView's allowedValues in models/users.js). Unlike the other views, Bigboard renders every board the current user is a member of, not just the open one - the same idea as Kanboard's BigBoard plugin. The new bigboardView template (bigboardView.jade/js) queries the user's boards with the same membership selector the All Boards page uses, subscribes each one's lists/swimlanes/cards through the existing 'board' composite publication, and stacks each board as its own section reusing the existing listsGroup/list/card templates - so editing, dragging and opening a card behave exactly as on a normal board page. Rendering several boards' lists on one page at once exposed a bug the single-board case never could: list drag-and-drop connects via a plain '.js-swimlane, .js-lists' jQuery UI sortable selector, which would let a list be dragged out of one board's section into another's now that more than one board's lists share a page. Added a data-board-id attribute to the swimlane/listsGroup root elements and a connectWithSelector() helper (swimlanes.js) that scopes the connect selector to the dragged list's own board id when one is present - ordinary single-board views still have exactly one board id on the page, so their behaviour is unchanged. Thanks to Jieiku and xet7 !
42 lines
866 B
CSS
42 lines
866 B
CSS
/* Board "Bigboard" view (#4223) — every board the user belongs to, stacked
|
|
vertically on one scrollable page, each rendered as its own compact
|
|
kanban section reusing the normal lists/cards markup. */
|
|
.bigboard-view {
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: auto;
|
|
padding: 16px;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.bigboard-board {
|
|
margin-bottom: 32px;
|
|
border: 1px solid var(--card-border-color, rgba(0, 0, 0, 0.1));
|
|
border-radius: 6px;
|
|
padding: 12px;
|
|
}
|
|
|
|
.bigboard-board-title {
|
|
margin: 0 0 12px;
|
|
font-size: calc(20px * var(--wekan-ui-font-scale, 1));
|
|
font-weight: bold;
|
|
}
|
|
|
|
.bigboard-board-link {
|
|
color: inherit;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.bigboard-board-link:hover {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.bigboard-board-lists {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.bigboard-board-lists .swimlane.list-group.js-lists {
|
|
height: auto;
|
|
min-height: 120px;
|
|
}
|