Skip to content

Commit

Permalink
feat: fix the padding issues
Browse files Browse the repository at this point in the history
  • Loading branch information
sheikalthaf committed Oct 25, 2023
1 parent eab4f4f commit 16d8b0c
Show file tree
Hide file tree
Showing 18 changed files with 39 additions and 66 deletions.
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@
"typescript.referencesCodeLens.enabled": true,
"typescript.implementationsCodeLens.enabled": true,
"javascript.inlayHints.parameterTypes.enabled": true,
"javascript.inlayHints.variableTypes.enabled": true
"javascript.inlayHints.variableTypes.enabled": true,
"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
"*.ts": "${basename}.spec.ts,${basename}.ts"
}
}
3 changes: 0 additions & 3 deletions src/app/app.component.html

This file was deleted.

26 changes: 0 additions & 26 deletions src/app/app.component.scss

This file was deleted.

47 changes: 34 additions & 13 deletions src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,14 @@
import { Component, ViewChild, inject } from '@angular/core';
import { NgForOf } from '@angular/common';
import { RouterOutlet } from '@angular/router';
import { ContainerComponent } from './container.component';
import { FlowChildComponent } from './flow-child.component';
import { FlowComponent } from './flow.component';
import { FlowOptions } from './flow-interface';
import { FlowService } from './flow.service';
import { FlowChildComponent } from './flow/flow-child.component';
import { FlowComponent } from './flow/flow.component';
import { FlowOptions } from './flow/flow-interface';

@Component({
selector: 'app-root',
standalone: true,
imports: [
NgForOf,
RouterOutlet,
FlowComponent,
ContainerComponent,
FlowChildComponent,
],
imports: [NgForOf, RouterOutlet, FlowComponent, FlowChildComponent],
template: `
<button (click)="trigger()">Arrange</button>
Expand Down Expand Up @@ -54,7 +46,36 @@ import { FlowService } from './flow.service';
</app-flow>
</div>
`,
styleUrls: ['./app.component.scss'],
styles: [
`
.card {
display: flex;
align-items: center;
justify-content: center;
width: 180px;
height: 40px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.3);
border-radius: 5px;
background-color: white;
}
.doting {
--scale: 2;
left: 318px;
top: 263px;
width: calc(5px + (5px * var(--scale)));
height: calc(5px + (5px * var(--scale)));
position: fixed;
background: blue;
z-index: 124;
pointer-events: none;
}
button {
@apply p-1;
}
`,
],
})
export class AppComponent {
title = 'angular-flow';
Expand Down
23 changes: 0 additions & 23 deletions src/app/container.component.ts

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 16d8b0c

Please sign in to comment.