diff --git a/src/app/cartography/components/text-editor/text-editor.component.ts b/src/app/cartography/components/text-editor/text-editor.component.ts
index 3de27fa4..f8b9fa8e 100644
--- a/src/app/cartography/components/text-editor/text-editor.component.ts
+++ b/src/app/cartography/components/text-editor/text-editor.component.ts
@@ -60,6 +60,7 @@ export class TextEditorComponent implements OnInit, OnDestroy {
);
this.deactivateTextAdding();
this.innerText = '';
+ this.temporaryTextElement.nativeElement.innerText = '';
this.temporaryTextElement.nativeElement.removeEventListener('focusout', this.textListener);
this.renderer.setStyle(this.temporaryTextElement.nativeElement, 'display', 'none');
};
diff --git a/src/app/components/project-map/context-menu/actions/edit-style-action/edit-style-action.component.ts b/src/app/components/project-map/context-menu/actions/edit-style-action/edit-style-action.component.ts
index 2eefb6a9..5234c05b 100644
--- a/src/app/components/project-map/context-menu/actions/edit-style-action/edit-style-action.component.ts
+++ b/src/app/components/project-map/context-menu/actions/edit-style-action/edit-style-action.component.ts
@@ -20,7 +20,7 @@ export class EditStyleActionComponent implements OnInit {
editStyle() {
const dialogRef = this.dialog.open(StyleEditorDialogComponent, {
- width: '450px'
+ width: '300px'
});
let instance = dialogRef.componentInstance;
instance.server = this.server;
diff --git a/src/app/components/project-map/context-menu/actions/edit-text-action/edit-text-action.component.ts b/src/app/components/project-map/context-menu/actions/edit-text-action/edit-text-action.component.ts
index 435733ff..cc2f0720 100644
--- a/src/app/components/project-map/context-menu/actions/edit-text-action/edit-text-action.component.ts
+++ b/src/app/components/project-map/context-menu/actions/edit-text-action/edit-text-action.component.ts
@@ -20,7 +20,7 @@ export class EditTextActionComponent implements OnInit {
editText() {
const dialogRef = this.dialog.open(TextEditorDialogComponent, {
- width: '450px'
+ width: '300px'
});
let instance = dialogRef.componentInstance;
instance.server = this.server;
diff --git a/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.html b/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.html
index e4ee1bc5..62f53a10 100644
--- a/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.html
+++ b/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.html
@@ -1,24 +1,27 @@
Style editor
-
- Fill color:
-
-
-
- Border color:
-
-
-
- Border width:
-
-
-
- Border style:
-
-
-
- Rotation:
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.scss b/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.scss
index 72ccb7a7..cc9d349b 100644
--- a/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.scss
+++ b/src/app/components/project-map/drawings-editors/style-editor/style-editor.component.scss
@@ -1,25 +1,22 @@
.item {
- display: flex;
height: 25px;
font-size: 10pt;
margin-bottom: 10px;
}
.item-name {
- width: 30%;
+ margin-bottom: 10px;
}
.item-value {
- width: 70%;
- margin: 3px;
- margin-right: 4px;
- margin-left: 4px;
+ width: 100%;
+ margin-bottom: 10px;
}
.input-color {
padding: 0px;
border-width: 0px;
- width: 70%;
+ width: 100%;
background-color: transparent;
outline: none;
}
@@ -27,3 +24,26 @@
input:focus {
outline: none;
}
+
+input[type="color"] {
+ -webkit-appearance: none;
+ border: none;
+ height: 25px;
+}
+
+input[type="color"]::-webkit-color-swatch-wrapper {
+ padding: 0;
+}
+
+input[type="color"]::-webkit-color-swatch {
+ border: none;
+}
+
+.modal-form-container {
+ display: flex;
+ flex-direction: column;
+}
+
+.modal-form-container > * {
+ width: 100%;
+}
diff --git a/src/app/components/project-map/drawings-editors/text-editor/text-editor.component.html b/src/app/components/project-map/drawings-editors/text-editor/text-editor.component.html
index 63f8daf9..97348473 100644
--- a/src/app/components/project-map/drawings-editors/text-editor/text-editor.component.html
+++ b/src/app/components/project-map/drawings-editors/text-editor/text-editor.component.html
@@ -1,13 +1,17 @@
Text editor
-
- Fill color:
-
-
-
- Rotation:
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/app/components/project-map/drawings-editors/text-editor/text-editor.component.scss b/src/app/components/project-map/drawings-editors/text-editor/text-editor.component.scss
index 24fd9cad..fa95b1f1 100644
--- a/src/app/components/project-map/drawings-editors/text-editor/text-editor.component.scss
+++ b/src/app/components/project-map/drawings-editors/text-editor/text-editor.component.scss
@@ -1,24 +1,22 @@
.item {
- display: flex;
height: 25px;
font-size: 10pt;
margin-bottom: 10px;
}
.item-name {
- width: 30%;
+ margin-bottom: 10px;
}
.item-value {
- width: 70%;
- margin-top: 3px;
- margin-bottom: 3px;
+ width: 100%;
+ margin-bottom: 10px;
}
.input-color {
padding: 0px;
border-width: 0px;
- width: 70%;
+ width: 100%;
background-color: transparent;
outline: none;
}
@@ -27,7 +25,30 @@ input:focus {
outline: none;
}
+input[type="color"] {
+ -webkit-appearance: none;
+ border: none;
+ height: 25px;
+}
+
+input[type="color"]::-webkit-color-swatch-wrapper {
+ padding: 0;
+}
+
+input[type="color"]::-webkit-color-swatch {
+ border: none;
+}
+
.text {
width: 100%;
height: 150px;
}
+
+.modal-form-container {
+ display: flex;
+ flex-direction: column;
+}
+
+.modal-form-container > * {
+ width: 100%;
+}
diff --git a/src/app/components/project-map/project-map.component.ts b/src/app/components/project-map/project-map.component.ts
index 9c4bd4f5..06a79792 100644
--- a/src/app/components/project-map/project-map.component.ts
+++ b/src/app/components/project-map/project-map.component.ts
@@ -207,6 +207,10 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
}
setUpMapCallbacks() {
+ if (!this.readonly) {
+ this.toolsService.selectionToolActivation(true);
+ }
+
const onNodeContextMenu = this.nodeWidget.onContextMenu.subscribe((eventNode: NodeContextMenu) => {
const node = this.mapNodeToNode.convert(eventNode.node);
this.contextMenu.openMenuForNode(node, eventNode.event.clientY, eventNode.event.clientX);
@@ -219,7 +223,7 @@ export class ProjectMapComponent implements OnInit, OnDestroy {
const onContextMenu = this.selectionTool.contextMenuOpened.subscribe((event) => {
const selectedItems = this.selectionManager.getSelected();
- if (selectedItems.length === 0) return;
+ if (selectedItems.length === 0 || !(event instanceof MouseEvent)) return;
let drawings: Drawing[] = [];
let nodes: Node[] = [];
diff --git a/src/app/components/projects/import-project-dialog/import-project-dialog.component.css b/src/app/components/projects/import-project-dialog/import-project-dialog.component.css
index 6d26582e..5485afaa 100644
--- a/src/app/components/projects/import-project-dialog/import-project-dialog.component.css
+++ b/src/app/components/projects/import-project-dialog/import-project-dialog.component.css
@@ -3,9 +3,9 @@
}
.file-button{
- height: 50px;
- width: 20%;
- margin-top: 10px;
+ width: 100%;
+ margin-top: 5px;
+ margin-bottom: 10px;
padding: 0px;
}
@@ -15,8 +15,7 @@
}
.file-name-form-field {
- margin-left: 5%;
- width: 65%;
+ width: 100%;
}
.delete-button {
diff --git a/src/app/components/projects/projects.component.ts b/src/app/components/projects/projects.component.ts
index 819a9c99..f6ae4fbb 100644
--- a/src/app/components/projects/projects.component.ts
+++ b/src/app/components/projects/projects.component.ts
@@ -109,7 +109,7 @@ export class ProjectsComponent implements OnInit {
addBlankProject() {
const dialogRef = this.dialog.open(AddBlankProjectDialogComponent, {
- width: '550px'
+ width: '400px'
});
let instance = dialogRef.componentInstance;
instance.server = this.server;
@@ -117,7 +117,7 @@ export class ProjectsComponent implements OnInit {
importProject() {
const dialogRef = this.dialog.open(ImportProjectDialogComponent, {
- width: '550px'
+ width: '400px'
});
let instance = dialogRef.componentInstance;
instance.server = this.server;
diff --git a/src/styles.css b/src/styles.css
index ff884be0..fc243b2c 100644
--- a/src/styles.css
+++ b/src/styles.css
@@ -16,6 +16,10 @@ a.table-link {
color: white!important;
}
+.mat-dialog-actions {
+ margin-bottom: -12px!important;
+}
+
@-moz-document url-prefix() {
.temporaryElement{
line-height: 1.4em;