Code cleaned up

This commit is contained in:
Piotr Pekala 2018-12-13 03:53:53 -08:00
parent e58d33f690
commit 894b7904c3
3 changed files with 12 additions and 0 deletions

View File

@ -55,6 +55,7 @@ export class TextAddingTool {
private getTemporaryElement(x:number, y:number): HTMLDivElement{
var elem = document.createElement('div');
elem.className = "temporaryElement";
elem.style.paddingLeft = "4px";
elem.style.width = "fit-content";
elem.style.left = x.toString() + 'px';

View File

@ -46,6 +46,7 @@ export class TextEditingTool {
var y = Number(transformData[1].split(/,/)[1]) + this.context.getZeroZeroTransformationPoint().y;
this.temporaryElement = document.createElement('div');
this.temporaryElement.className = "temporaryElement";
this.temporaryElement.style.paddingLeft = "4px";
this.temporaryElement.style.width = "fit-content";
this.temporaryElement.style.left = x.toString() + 'px';

View File

@ -16,6 +16,16 @@ a.table-link {
color: white!important;
}
.temporaryElement{
margin-top: -10px;
}
@-moz-document url-prefix() {
.temporaryElement{
margin-top: -11px;
}
}
app-root {
width: 100%;
}