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