mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-06-22 16:39:00 +00:00
Code cleaned up
This commit is contained in:
@ -55,6 +55,7 @@ export class TextAddingTool {
|
|||||||
|
|
||||||
private getTemporaryElement(x:number, y:number): HTMLDivElement{
|
private getTemporaryElement(x:number, y:number): HTMLDivElement{
|
||||||
var elem = document.createElement('div');
|
var elem = document.createElement('div');
|
||||||
|
elem.className = "temporaryElement";
|
||||||
elem.style.paddingLeft = "4px";
|
elem.style.paddingLeft = "4px";
|
||||||
elem.style.width = "fit-content";
|
elem.style.width = "fit-content";
|
||||||
elem.style.left = x.toString() + 'px';
|
elem.style.left = x.toString() + 'px';
|
||||||
|
@ -46,6 +46,7 @@ export class TextEditingTool {
|
|||||||
var y = Number(transformData[1].split(/,/)[1]) + this.context.getZeroZeroTransformationPoint().y;
|
var y = Number(transformData[1].split(/,/)[1]) + this.context.getZeroZeroTransformationPoint().y;
|
||||||
|
|
||||||
this.temporaryElement = document.createElement('div');
|
this.temporaryElement = document.createElement('div');
|
||||||
|
this.temporaryElement.className = "temporaryElement";
|
||||||
this.temporaryElement.style.paddingLeft = "4px";
|
this.temporaryElement.style.paddingLeft = "4px";
|
||||||
this.temporaryElement.style.width = "fit-content";
|
this.temporaryElement.style.width = "fit-content";
|
||||||
this.temporaryElement.style.left = x.toString() + 'px';
|
this.temporaryElement.style.left = x.toString() + 'px';
|
||||||
|
@ -16,6 +16,16 @@ a.table-link {
|
|||||||
color: white!important;
|
color: white!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.temporaryElement{
|
||||||
|
margin-top: -10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
@-moz-document url-prefix() {
|
||||||
|
.temporaryElement{
|
||||||
|
margin-top: -11px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
app-root {
|
app-root {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user