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
[chore] set height for file picker body
Eric Schuberta63dc563156f
diff --git a/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.html b/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.htmlindex a69ff168466..365b4eec263 100644--- a/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.html+++ b/frontend/src/app/shared/components/storages/file-picker-modal/file-picker-modal.component.html@@ -16,7 +16,7 @@<div class="spot-divider"></div>- <div class="spot-modal--body spot-container">+ <div class="spot-modal--body spot-container op-file-picker--modal-body"><spot-breadcrumbs [content]="breadcrumbs"></spot-breadcrumbs><ng-container *ngIf="(loading$ | async) === false; else loadingTemplate">diff --git a/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html b/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.htmlindex bc686066be4..5f850423500 100644--- a/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html+++ b/frontend/src/app/shared/components/storages/location-picker-modal/location-picker-modal.component.html@@ -1,12 +1,12 @@<div- class="spot-modal spot-modal_wide"+ class="spot-modal spot-modal_wide op-file-picker"data-qa-selector="op-files-picker-modal"><div class="spot-modal--header"><span class="spot-modal--header-title">{{text.header}}</span><buttontype="button"- class="button button_no-margin"+ class="button button_no-margin spot-modal--header-button"(click)="openStorageLocation()"><span>{{text.buttons.openStorage()}}</span>@@ -16,16 +16,16 @@<div class="spot-divider"></div>- <div class="spot-modal--body spot-container">- <ng-container *ngIf="(loading$ | async) === false; else loadingTemplate">- <spot-breadcrumbs [content]="breadcrumbs"></spot-breadcrumbs>+ <div class="spot-modal--body spot-container op-file-picker--modal-body">+ <spot-breadcrumbs [content]="breadcrumbs"></spot-breadcrumbs>+ <ng-container *ngIf="(loading$ | async) === false; else loadingTemplate"><ul- class="spot-list spot-list_compact op-file-list"+ class="spot-list spot-list_compact op-file-list op-file-picker--scrollable-content"data-qa-selector="op-files-picker-modal--file-list"><li- *ngFor="let file of listItems$ | async | sortFiles; let i = index;"+ *ngFor="let file of listItems$ | async; let i = index;"class="spot-list--item op-file-list--item"data-qa-selector="op-file-list--item"op-storage-file-list-item@@ -35,7 +35,7 @@</ng-container><ng-template #loadingTemplate>- <op-loading-file-list></op-loading-file-list>+ <op-loading-file-list class="spot-body-big"></op-loading-file-list></ng-template></div>diff --git a/frontend/src/app/spot/styles/sass/components/modal-overrides.sass b/frontend/src/app/spot/styles/sass/components/modal-overrides.sassindex aef14794328..7bcb16016d1 100644--- a/frontend/src/app/spot/styles/sass/components/modal-overrides.sass+++ b/frontend/src/app/spot/styles/sass/components/modal-overrides.sass@@ -8,15 +8,3 @@.modal-delivery-elementdisplay: none--@media #{$spot-mq-mobile}- .spot-modal.op-file-picker- min-height: calc(100vh - 5rem)--@media #{$spot-mq-desktop}- .spot-modal.op-file-picker- max-height: 40vh-- .op-file-picker- &--scrollable-content- overflow-y: autodiff --git a/frontend/src/global_styles/content/_work_packages.sass b/frontend/src/global_styles/content/_work_packages.sassindex 5f6f7e201b3..dbbd3eba57b 100644--- a/frontend/src/global_styles/content/_work_packages.sass+++ b/frontend/src/global_styles/content/_work_packages.sass@@ -60,6 +60,7 @@// Shared@import work_packages/shared/file_list+@import work_packages/shared/file_picker// Table configuration@import work_packages/table_configuration_modaldiff --git a/frontend/src/global_styles/content/work_packages/shared/_file_picker.sass b/frontend/src/global_styles/content/work_packages/shared/_file_picker.sassnew file mode 100644index 00000000000..25a63e0e9bd--- /dev/null+++ b/frontend/src/global_styles/content/work_packages/shared/_file_picker.sass@@ -0,0 +1,39 @@+//-- copyright+// OpenProject is an open source project management software.+// Copyright (C) 2012-2022 the OpenProject GmbH+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License version 3.+//+// OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+// Copyright (C) 2006-2013 Jean-Philippe Lang+// Copyright (C) 2010-2013 the ChiliProject Team+//+// This program is free software; you can redistribute it and/or+// modify it under the terms of the GNU General Public License+// as published by the Free Software Foundation; either version 2+// of the License, or (at your option) any later version.+//+// This program is distributed in the hope that it will be useful,+// but WITHOUT ANY WARRANTY; without even the implied warranty of+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+// GNU General Public License for more details.+//+// You should have received a copy of the GNU General Public License+// along with this program; if not, write to the Free Software+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+//+// See COPYRIGHT and LICENSE files for more details.+//++++.op-file-picker+ &--scrollable-content+ overflow-y: auto++ @media #{$spot-mq-mobile}+ &.spot-modal+ min-height: calc(100vh - 5rem)++ &--modal-body+ @media #{$spot-mq-desktop}+ height: 65vh