Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
verona-modules-aspect
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IQB
verona-modules-aspect
Commits
fcccde58
Commit
fcccde58
authored
1 year ago
by
jojohoch
Browse files
Options
Downloads
Patches
Plain Diff
[editor] Replace Flex layout module with classes in HotspotEditDialogC.
- Reformat styles
parent
eaab2dfb
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
projects/editor/src/app/components/dialogs/hotspot-edit-dialog.component.ts
+56
-17
56 additions, 17 deletions
...c/app/components/dialogs/hotspot-edit-dialog.component.ts
with
56 additions
and
17 deletions
projects/editor/src/app/components/dialogs/hotspot-edit-dialog.component.ts
+
56
−
17
View file @
fcccde58
...
@@ -5,39 +5,39 @@ import { Hotspot } from 'common/models/elements/element';
...
@@ -5,39 +5,39 @@ import { Hotspot } from 'common/models/elements/element';
@
Component
({
@
Component
({
selector
:
'
aspect-hotspot-edit-dialog
'
,
selector
:
'
aspect-hotspot-edit-dialog
'
,
template
:
`
template
:
`
<mat-dialog-content
fxLayout="column" fxLayoutGap="10px
">
<mat-dialog-content
class="fx-column-start-stretch fx-fix-gap-10
">
<div
fxLayout="row" fxLayoutGap="10px
">
<div
class="fx-row-start-stretch fx-fix-gap-10
">
<mat-form-field appearance="fill"
fxFlex="50"
>
<mat-form-field
class="fx-flex-50"
appearance="fill">
<mat-label>{{ 'hotspot.top' | translate }}</mat-label>
<mat-label>{{ 'hotspot.top' | translate }}</mat-label>
<input matInput type="number" min="0"
<input matInput type="number" min="0"
[(ngModel)]="newHotspot.top">
[(ngModel)]="newHotspot.top">
</mat-form-field>
</mat-form-field>
<mat-form-field appearance="fill"
fxFlex="50"
>
<mat-form-field
class="fx-flex-50"
appearance="fill">
<mat-label>{{ 'hotspot.left' | translate }}</mat-label>
<mat-label>{{ 'hotspot.left' | translate }}</mat-label>
<input matInput type="number" min="0"
<input matInput type="number" min="0"
[(ngModel)]="newHotspot.left">
[(ngModel)]="newHotspot.left">
</mat-form-field>
</mat-form-field>
</div>
</div>
<div
fxLayout="row" fxLayoutGap="10px
">
<div
class="fx-row-start-stretch fx-fix-gap-10
">
<mat-form-field appearance="fill"
fxFlex="50"
>
<mat-form-field
class="fx-flex-50"
appearance="fill">
<mat-label>{{ 'hotspot.width' | translate }}</mat-label>
<mat-label>{{ 'hotspot.width' | translate }}</mat-label>
<input matInput type="number" min="0"
<input matInput type="number" min="0"
[(ngModel)]="newHotspot.width">
[(ngModel)]="newHotspot.width">
</mat-form-field>
</mat-form-field>
<mat-form-field appearance="fill"
fxFlex="50"
>
<mat-form-field
class="fx-flex-50"
appearance="fill">
<mat-label>{{ 'hotspot.height' | translate }}</mat-label>
<mat-label>{{ 'hotspot.height' | translate }}</mat-label>
<input matInput type="number" min="0"
<input matInput type="number" min="0"
[(ngModel)]="newHotspot.height">
[(ngModel)]="newHotspot.height">
</mat-form-field>
</mat-form-field>
</div>
</div>
<div
fxLayout="row" fxLayoutGap="10px" fxLayoutAlign="
space-between
center">
<div
class="fx-row-
space-between
-
center
fx-fix-gap-10
">
<mat-radio-group [(ngModel)]="newHotspot.shape"
fxFlex="50" fxLayout='column' fxLayoutGap="5px
">
<mat-radio-group [(ngModel)]="newHotspot.shape"
class="fx-column-start-stretch fx-flex-50 fx-fix-gap-5
">
<label>{{'hotspot.shape' | translate}}</label>
<label>{{'hotspot.shape' | translate}}</label>
<mat-radio-button value='ellipse'>{{'hotspot.ellipse' | translate}}</mat-radio-button>
<mat-radio-button value='ellipse'>{{'hotspot.ellipse' | translate}}</mat-radio-button>
<mat-radio-button value='rectangle'>{{'hotspot.rectangle' | translate}}</mat-radio-button>
<mat-radio-button value='rectangle'>{{'hotspot.rectangle' | translate}}</mat-radio-button>
<mat-radio-button value='triangle'>{{'hotspot.triangle' | translate}}</mat-radio-button>
<mat-radio-button value='triangle'>{{'hotspot.triangle' | translate}}</mat-radio-button>
</mat-radio-group>
</mat-radio-group>
<mat-form-field appearance="fill"
fxFlex="50"
>
<mat-form-field
class="fx-flex-50"
appearance="fill">
<mat-label>{{ 'hotspot.borderWidth' | translate }}</mat-label>
<mat-label>{{ 'hotspot.borderWidth' | translate }}</mat-label>
<input matInput type="number" min="0"
<input matInput type="number" min="0"
[(ngModel)]="newHotspot.borderWidth">
[(ngModel)]="newHotspot.borderWidth">
...
@@ -45,8 +45,8 @@ import { Hotspot } from 'common/models/elements/element';
...
@@ -45,8 +45,8 @@ import { Hotspot } from 'common/models/elements/element';
</div>
</div>
<div
fxLayout="row" fxLayoutGap="10px
">
<div
class="fx-row-start-stretch fx-fix-gap-10
">
<mat-form-field appearance="fill" class="mdInput textsingleline">
<mat-form-field appearance="fill" class="mdInput textsingleline
fx-flex-50
">
<mat-label>{{'hotspot.backgroundColor' | translate }}</mat-label>
<mat-label>{{'hotspot.backgroundColor' | translate }}</mat-label>
<input matInput type="text" [(ngModel)]="newHotspot.backgroundColor">
<input matInput type="text" [(ngModel)]="newHotspot.backgroundColor">
<button mat-icon-button matSuffix (click)="backgroundColorInput.click()">
<button mat-icon-button matSuffix (click)="backgroundColorInput.click()">
...
@@ -55,7 +55,7 @@ import { Hotspot } from 'common/models/elements/element';
...
@@ -55,7 +55,7 @@ import { Hotspot } from 'common/models/elements/element';
</mat-form-field>
</mat-form-field>
<input matInput type="color" hidden #backgroundColorInput [(ngModel)]="newHotspot.backgroundColor">
<input matInput type="color" hidden #backgroundColorInput [(ngModel)]="newHotspot.backgroundColor">
<mat-form-field appearance="fill" class="mdInput textsingleline">
<mat-form-field appearance="fill" class="mdInput textsingleline
fx-flex-50
">
<mat-label>{{'hotspot.borderColor' | translate }}</mat-label>
<mat-label>{{'hotspot.borderColor' | translate }}</mat-label>
<input matInput type="text" [(ngModel)]="newHotspot.borderColor">
<input matInput type="text" [(ngModel)]="newHotspot.borderColor">
<button mat-icon-button matSuffix (click)="borderColorInput.click()">
<button mat-icon-button matSuffix (click)="borderColorInput.click()">
...
@@ -65,13 +65,13 @@ import { Hotspot } from 'common/models/elements/element';
...
@@ -65,13 +65,13 @@ import { Hotspot } from 'common/models/elements/element';
<input matInput type="color" hidden #borderColorInput [(ngModel)]="newHotspot.borderColor">
<input matInput type="color" hidden #borderColorInput [(ngModel)]="newHotspot.borderColor">
</div>
</div>
<div
fxLayout="row" fxLayoutGap="10px
">
<div
class="fx-row-start-stretch fx-fix-gap-10
">
<mat-form-field appearance="fill"
fxFlex="50"
>
<mat-form-field
class="fx-flex-50"
appearance="fill">
<mat-label>{{ 'hotspot.rotation' | translate }}</mat-label>
<mat-label>{{ 'hotspot.rotation' | translate }}</mat-label>
<input matInput type="number" min="0"
<input matInput type="number" min="0"
[(ngModel)]="newHotspot.rotation">
[(ngModel)]="newHotspot.rotation">
</mat-form-field>
</mat-form-field>
<div
fxF
lex
="
50">
<div
class="fx-f
lex
-
50">
<mat-checkbox [checked]="newHotspot.value"
<mat-checkbox [checked]="newHotspot.value"
(change)="newHotspot.value = $event.checked">
(change)="newHotspot.value = $event.checked">
{{ 'hotspot.value' | translate }}
{{ 'hotspot.value' | translate }}
...
@@ -87,7 +87,46 @@ import { Hotspot } from 'common/models/elements/element';
...
@@ -87,7 +87,46 @@ import { Hotspot } from 'common/models/elements/element';
<button mat-button [mat-dialog-close]="newHotspot">{{'save' | translate }}</button>
<button mat-button [mat-dialog-close]="newHotspot">{{'save' | translate }}</button>
<button mat-button mat-dialog-close>{{'cancel' | translate }}</button>
<button mat-button mat-dialog-close>{{'cancel' | translate }}</button>
</mat-dialog-actions>
</mat-dialog-actions>
`
`
,
styles
:
[
`
.fx-column-start-stretch {
box-sizing: border-box;
display: flex;
flex-direction: column;
justify-content: start;
align-items: stretch;
}
.fx-row-start-stretch {
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: start;
align-items: stretch;
}
.fx-row-space-between-center {
box-sizing: border-box;
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.fx-fix-gap-10 {
gap: 10px;
}
.fx-fix-gap-5 {
gap: 5px;
}
.fx-flex-50 {
flex: 1 1 100%;
box-sizing: border-box;
max-width: 50%;
}
`
]
})
})
export
class
HotspotEditDialogComponent
{
export
class
HotspotEditDialogComponent
{
constructor
(@
Inject
(
MAT_DIALOG_DATA
)
public
data
:
{
hotspot
:
Hotspot
})
{
}
constructor
(@
Inject
(
MAT_DIALOG_DATA
)
public
data
:
{
hotspot
:
Hotspot
})
{
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment