Skip to content

Commit

Permalink
fix(freeLayout): #MAG-304 fix free layout card-list size (#169)
Browse files Browse the repository at this point in the history
  • Loading branch information
alicedraillard authored and JinDouang committed Apr 4, 2024
1 parent b12b330 commit 99ffc4e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,10 @@
width: 60px;
}

.cardListMinHeight {
min-height: 1000px;
}

&-list {
width: 100%;
overflow-x: auto;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/public/template/board.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h1 class="cell paddingRight" tooltip="[[vm.board.title]]">
</board-nav>
</div>

<div class="cell boardContainer-container-body-list scrollbar">
<div class="cell boardContainer-container-body-list scrollbar" ng-class="{'cardListMinHeight': vm.notEmptyAndLayoutFree()}">
<dropzone-overlay on-import="vm.draggable.dragDropFilesHandler($event)" can-drop="vm.board.myRights.publish !== undefined"
ng-if="vm.isDraggable">
</dropzone-overlay>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,8 @@ interface IViewModel extends ng.IController {

resetBoardView(): Promise<void>;

notEmptyAndLayoutFree(): boolean;

onScroll(): void;

resetCards(): void;
Expand Down Expand Up @@ -367,6 +369,10 @@ class Controller implements IViewModel {
safeApply(this.$scope);
}

notEmptyAndLayoutFree(): boolean {
return this.cards.length > 0 && this.board.isLayoutFree();
}

initDraggable = (): void => {
const that = this;
this.draggable = {
Expand Down

0 comments on commit 99ffc4e

Please sign in to comment.