OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
refactoring board list styles
bsatarnejad6295fbc33eb2
diff --git a/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sass b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sassindex a27643557e4..e69de29bb2d 100644--- a/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sass+++ b/frontend/src/app/features/boards/board/board-actions/status/status-board-header.sass@@ -1 +0,0 @@-.op-status-board-headerdiff --git a/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sass b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sassindex 410853b7de5..e69de29bb2d 100644--- a/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sass+++ b/frontend/src/app/features/boards/board/board-actions/subproject/subproject-board-header.sass@@ -1,3 +0,0 @@-// Override line-height for proper-// display of the h2 + small-.op-subproject-board-headerdiff --git a/frontend/src/app/features/boards/board/board-list/board-list.component.html b/frontend/src/app/features/boards/board/board-list/board-list.component.htmlindex 14355d3e1e8..c86ce80e1b0 100644--- a/frontend/src/app/features/boards/board/board-list/board-list.component.html+++ b/frontend/src/app/features/boards/board/board-list/board-list.component.html@@ -1,15 +1,15 @@<div #loadingIndicator[attr.data-query-name]="listName"- class="board-list--container loading-indicator--location"+ class="op-board-list loading-indicator--location"[ngClass]="{ '-action-list': board.isAction }"><ng-container *ngIf="query"><div *ngIf="board.isAction"- class="board-list--action-bar"+ class="op-board-list--action-bar"[ngClass]="actionResourceClass"></div>- <div class="board-list--header">+ <div class="op-board-list--header"><ndc-dynamic *ngIf="headerComponent"[ndcDynamicComponent]="headerComponent"[ndcDynamicInputs]="{ resource: actionResource }">@@ -24,18 +24,18 @@class="-small"></editable-toolbar-title>- <board-list-menu class="board-list--menu"+ <board-list-menu class="op-board-list--menu"[board]="board"(onRemove)="deleteList()"></board-list-menu></div>- <div class="board-list--query-container drop-zone"+ <div class="op-board-list--query-container drop-zone"[ngClass]="{ '-with-create-button': board.isAction || showAddButton }">- <div class="board-list--button-container">+ <div class="op-board-list--button-container"><button [title]="text.addCard"*ngIf="showAddButton"- class="board-list--add-button board-list--card-dropdown-button button"+ class="op-board-list--add-button op-board-list--card-dropdown-button button"op-addCardDropdown><op-icon icon-classes="icon-small icon-add"></op-icon></button>@@ -54,7 +54,7 @@</wp-card-view></div></ng-container>- <div class="notification-box -error" *ngIf="loadingError">+ <div class="op-board-list--notification-box -error" *ngIf="loadingError"><p><span [textContent]="errorMessage"></span>&ngsp;diff --git a/frontend/src/app/features/boards/board/board-list/board-list.component.sass b/frontend/src/app/features/boards/board/board-list/board-list.component.sassindex 0f1a41107ab..d1b85f879b9 100644--- a/frontend/src/app/features/boards/board/board-list/board-list.component.sass+++ b/frontend/src/app/features/boards/board/board-list/board-list.component.sass@@ -2,71 +2,71 @@$board-list-max-width: 300px-.board-list--query-container- // 100% - board header height- max-width: inherit- overflow: hidden- height: 100%-- // Ensure grid is only applied if button is visible- &.-with-create-button- display: grid- // In order to enable automatic scrolling within the card view,- // it is important that second container is limited in the height, so that it is scrollable.- grid-template: 34px minmax(0, 1fr) / 1fr--// Make the button sticky so that it does not scroll,-// Unfortunately we cannot let the card container scroll because there seem to be a Chrome bug,-// which takes the scrollbar sometimes into the width calculation and sometimes not.-// Thus, the button is sometimes wider than the cards, and sometimes not.-.board-list--button-container- background-color: var(--body-background)- position: sticky- top: 0px- z-index: 1--.board-list--container+.op-board-listheight: 100%max-width: $board-list-max-widthdisplay: flexflex-direction: column&:hover- .board-list--menu+ .op-board-list--menuvisibility: visible-.board-list--action-bar- width: calc(100% - 30px)- height: 5px- margin: auto+ &--action-bar+ width: calc(100% - 30px)+ height: 5px+ margin: auto-.board-list--header- padding: 5px 15px- display: flex- align-items: center- max-height: 52px+ &--header+ padding: 5px 15px+ display: flex+ align-items: center+ max-height: 52px- editable-toolbar-title- flex: 1- margin-bottom: 0- margin-right: 0.25rem+ editable-toolbar-title+ flex: 1+ margin-bottom: 0+ margin-right: 0.25rem-.notification-box- margin-top: 0- // Avoids having to hide the drag&drop handle of the list- z-index: 100+ &--notification-box+ margin-top: 0+ // Avoids having to hide the drag&drop handle of the list+ z-index: 100-.board-list--add-button- background-color: var(--body-background)- width: calc(100% - 30px - #{$scrollbar-size})- margin: 0 15px- box-shadow: 1px 1px 3px 0px lightgrey+ &--add-button+ background-color: var(--body-background)+ width: calc(100% - 30px - #{$scrollbar-size})+ margin: 0 15px+ box-shadow: 1px 1px 3px 0px lightgrey- &:hover- background-color: #eeeeee50+ &:hover+ background-color: #eeeeee50++ &:disabled+ background-color: #cccccc50++ &--menu+ visibility: hidden++ &--query-container+ // 100% - board header height+ max-width: inherit+ overflow: hidden+ height: 100%- &:disabled- background-color: #cccccc50+ // Ensure grid is only applied if button is visible+ &.-with-create-button+ display: grid+ // In order to enable automatic scrolling within the card view,+ // it is important that second container is limited in the height, so that it is scrollable.+ grid-template: 34px minmax(0, 1fr) / 1fr-.board-list--menu- visibility: hidden+// Make the button sticky so that it does not scroll,+// Unfortunately we cannot let the card container scroll because there seem to be a Chrome bug,+// which takes the scrollbar sometimes into the width calculation and sometimes not.+// Thus, the button is sometimes wider than the cards, and sometimes not.+ &--button-container+ background-color: var(--body-background)+ position: sticky+ top: 0px+ z-index: 1