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
[#42158] reworked style of storage information box
Eric Schubertba2964d07504
diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.tsindex 82ab55bce79..9577f82251f 100644--- a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.component.ts@@ -49,8 +49,6 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInit@Input() public storage:IStorage;- allowEditing = false;-fileLinks$:Observable<IFileLink[]>;informationBoxHeader:string;@@ -61,6 +59,8 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInitinformationBoxIcon:string;+ allowEditing = false;+showInformationBox = false;showFileLinks = false;@@ -154,7 +154,7 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInitthis.informationBoxHeader = this.text.infoBox.authenticationFailureHeader;this.informationBoxContent = this.text.infoBox.authenticationFailureContent;this.informationBoxButton = this.text.infoBox.loginButton;- this.informationBoxIcon = 'info1';+ this.informationBoxIcon = 'import';this.showInformationBox = true;this.showFileLinks = true;}@@ -163,7 +163,7 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInitthis.informationBoxHeader = this.text.infoBox.connectionErrorHeader;this.informationBoxContent = this.text.infoBox.connectionErrorContent;this.informationBoxButton = this.text.infoBox.loginButton;- this.informationBoxIcon = 'info1';+ this.informationBoxIcon = 'remove-link';this.showInformationBox = true;this.showFileLinks = false;}@@ -172,7 +172,7 @@ export class FileLinkListComponent extends UntilDestroyedMixin implements OnInitthis.informationBoxHeader = this.text.infoBox.emptyStorageHeader;this.informationBoxContent = this.text.infoBox.emptyStorageContent;this.informationBoxButton = this.text.infoBox.emptyStorageButton;- this.informationBoxIcon = 'info1';+ this.informationBoxIcon = 'add-link';this.showInformationBox = true;this.showFileLinks = true;}diff --git a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.htmlindex 3d4568e8939..41e20170abc 100644--- a/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html+++ b/frontend/src/app/shared/components/file-links/file-link-list/file-link-list.html@@ -1,7 +1,7 @@<div class="work-package--attachments--files" *ngIf="resource" data-qa-selector="op-files-tab--file-link-list"><op-storage-information*ngIf="showInformationBox"- [infoIcon]="'info1'"+ [infoIcon]="informationBoxIcon"[infoTextHeader]="informationBoxHeader"[infoTextContent]="informationBoxContent"[buttonText]="informationBoxButton"diff --git a/frontend/src/app/shared/components/file-links/file-link-list/storage-information.html b/frontend/src/app/shared/components/file-links/file-link-list/storage-information.htmlindex dea4edc322c..b5be28c170b 100644--- a/frontend/src/app/shared/components/file-links/file-link-list/storage-information.html+++ b/frontend/src/app/shared/components/file-links/file-link-list/storage-information.html@@ -1,13 +1,7 @@<divclass="op-files-tab--storage-info-box">- <div- class="icon-box"- >- <i- class="icon icon-{{infoIcon}}"- ></i>- </div>+ <span class="spot-icon spot-icon_{{infoIcon}}"></span><divclass="text-box"@@ -29,8 +23,10 @@><buttonclass="action-button"- [textContent]="buttonText"(click)="buttonClickEventEmitter.emit()"- ></button>+ >+ <span class="spot-icon spot-icon_external-link"></span>+ <span [textContent]="buttonText"></span>+ </button></div></div>diff --git a/frontend/src/global_styles/content/work_packages/tabs/_files.sass b/frontend/src/global_styles/content/work_packages/tabs/_files.sassindex 1b2c86f8b1a..e5555c87100 100644--- a/frontend/src/global_styles/content/work_packages/tabs/_files.sass+++ b/frontend/src/global_styles/content/work_packages/tabs/_files.sass@@ -84,17 +84,12 @@display: gridgrid-template: "icon text" "button button" / auto 1fr- .icon-box- height: 54px- width: 54px+ .spot-icongrid-area: icon- display: flex- justify-content: center- align-items: center-- .icon- color: #878787- font-size: 36px+ width: 3.375rem+ height: 3.375rem+ color: #878787+ font-size: 20px.text-boxgrid-area: text@@ -120,6 +115,13 @@font-size: 14pxline-height: 20px+ .spot-icon+ width: $spot-spacing-1_5+ height: $spot-spacing-1_5+ margin-right: 8px+ font-size: 14px+ color: #333333+&--color&-redcolor: #B93A33