mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
[ACS-5645]minor fixes
This commit is contained in:
+15
-3
@@ -9,7 +9,6 @@
|
||||
height: 32px;
|
||||
border-radius: 12px;
|
||||
align-items: center;
|
||||
padding: 0 12px;
|
||||
|
||||
mat-form-field {
|
||||
width: 100%;
|
||||
@@ -27,8 +26,14 @@
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.mat-form-field-appearance-fill .mat-form-field-flex {
|
||||
background: none;
|
||||
.mat-form-field-appearance-fill {
|
||||
.mat-form-field-flex {
|
||||
background: none;
|
||||
}
|
||||
|
||||
.mat-form-field-infix {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,6 +55,13 @@
|
||||
[hidden] {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
.adf-no-categories-message {
|
||||
margin-left: 9px;
|
||||
margin-top: 28.5px;
|
||||
margin-bottom: 0;
|
||||
height: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
.adf-categories-list {
|
||||
|
||||
+3
-3
@@ -99,7 +99,7 @@
|
||||
class="adf-metadata-properties-tags">
|
||||
<span *ngFor="let tag of tags" class="adf-metadata-properties-tag">{{ tag }}</span>
|
||||
</div>
|
||||
<div *ngIf="!tags.length && !editableTags" class="adf-metadata-no-tags-added">
|
||||
<div *ngIf="!tags.length && !editableTags" class="adf-metadata-no-item-added">
|
||||
{{ 'METADATA.BASIC.NO_TAGS_ADDED' | translate }}
|
||||
</div>
|
||||
<div *ngIf="editableTags" class="adf-metadata-properties-tags">
|
||||
@@ -157,7 +157,7 @@
|
||||
<div *ngIf="!editableCategories">
|
||||
<p *ngFor="let category of categories" class="adf-metadata-categories">{{ category.name }}</p>
|
||||
</div>
|
||||
<div *ngIf="!categories.length && !editableCategories" class="adf-metadata-no-categories-added">
|
||||
<div *ngIf="!categories.length && !editableCategories" class="adf-metadata-no-item-added">
|
||||
{{ 'CATEGORIES_MANAGEMENT.NO_CATEGORIES_ADDED' | translate }}
|
||||
</div>
|
||||
<div *ngIf="editableCategories" class="adf-metadata-categories-header">
|
||||
@@ -222,7 +222,7 @@
|
||||
</div>
|
||||
</mat-expansion-panel-header>
|
||||
<mat-divider class="adf-mat-divider"></mat-divider>
|
||||
<div *ngIf="!showGroup(group) && !group.editable" class="adf-metadata-no-tags-added">
|
||||
<div *ngIf="!showGroup(group) && !group.editable" class="adf-metadata-no-item-added">
|
||||
{{ 'METADATA.BASIC.NO_ITEMS_MESSAGE' | translate: { groupTitle: group.title } }}
|
||||
</div>
|
||||
<adf-card-view
|
||||
|
||||
+1
-9
@@ -42,15 +42,7 @@
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.adf-metadata-no-tags-added {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
font-size: 15px;
|
||||
padding: 24px;
|
||||
}
|
||||
|
||||
.adf-metadata-no-categories-added {
|
||||
.adf-metadata-no-item-added {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
+4
-2
@@ -351,6 +351,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
||||
toggleGeneralEdit(event: MouseEvent): void {
|
||||
event.stopPropagation();
|
||||
this.editable = !this.editable;
|
||||
this.editableChange.emit(this.editable);
|
||||
this.cancelEditChanges();
|
||||
if (this.editable) {
|
||||
this.panel.open();
|
||||
@@ -362,10 +363,10 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
||||
toggleTagsEdit(event: MouseEvent): void {
|
||||
event.stopPropagation();
|
||||
this.editableTags = !this.editableTags;
|
||||
this.tagsPanelState = this.editableTags;
|
||||
this.cancelEditChanges();
|
||||
this.tagNameControlVisible = true;
|
||||
if (this.editableTags) {
|
||||
this.tagsPanelState = true;
|
||||
this.editable = false;
|
||||
this.editableCategories = false;
|
||||
}
|
||||
@@ -375,9 +376,9 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
||||
event.stopPropagation();
|
||||
this.cancelEditChanges();
|
||||
this.editableCategories = !this.editableCategories;
|
||||
this.categoriesPanelState = this.editableCategories;
|
||||
this.categoryControlVisible = true;
|
||||
if (this.editableCategories) {
|
||||
this.categoriesPanelState = true;
|
||||
this.editable = false;
|
||||
this.editableTags = false;
|
||||
}
|
||||
@@ -389,6 +390,7 @@ export class ContentMetadataComponent implements OnChanges, OnInit, OnDestroy {
|
||||
this.editableGroup.editable = false;
|
||||
}
|
||||
group.editable = !group.editable;
|
||||
this.editableChange.emit(this.editable);
|
||||
this.editableGroup = group.editable ? group : null;
|
||||
if (group.editable) {
|
||||
group.expanded = true;
|
||||
|
||||
Reference in New Issue
Block a user