mirror of
https://github.com/GNS3/gns3-web-ui.git
synced 2025-02-20 17:52:46 +00:00
Code cleaned up
This commit is contained in:
parent
e58d33f690
commit
894b7904c3
@ -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';
|
||||
|
@ -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';
|
||||
|
@ -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%;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user