Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RLG Maker
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Romain DELEAU
RLG Maker
Commits
57802226
Commit
57802226
authored
Aug 25, 2023
by
Romain DELEAU
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
step background-image only if its the first step of the line
parent
57439d05
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
step.component.html
src/app/pieces/step/step.component.html
+1
-1
step.component.scss
src/app/pieces/step/step.component.scss
+0
-1
step.component.ts
src/app/pieces/step/step.component.ts
+10
-0
No files found.
src/app/pieces/step/step.component.html
View file @
57802226
...
...
@@ -21,7 +21,7 @@
<div
class=
"piece-form"
>
<div
class=
"piece-form-title"
>
Étape {{index+1}}
</div>
<mat-icon
class=
"piece-form-comment"
fontIcon=
"comment"
*
ngIf=
"step.comments.length > 0"
></mat-icon>
<textarea
[(
ngModel
)]="
step
.
description
"
></textarea>
<textarea
[(
ngModel
)]="
step
.
description
"
[
style
.
background-image
]="
index =
=
FirstStepIndex
()
?
urlIcon
:
''"
></textarea>
<div
class=
"piece-form-duration"
>
<label
for=
"duration"
>
Durée
</label>
<input
name=
"duration"
type=
"number"
[(
ngModel
)]="
step
.
duration
"
(
input
)="
durationChange
()"
/>
...
...
src/app/pieces/step/step.component.scss
View file @
57802226
...
...
@@ -97,7 +97,6 @@
border-radius
:
10px
;
border
:
none
;
resize
:
none
;
background-image
:
url("../../../assets/background-images/step.png")
;
background-position
:
center
;
background-repeat
:
no-repeat
;
background-size
:
100px
;
...
...
src/app/pieces/step/step.component.ts
View file @
57802226
...
...
@@ -22,6 +22,7 @@ export class StepComponent implements OnInit {
displayMenu
:
string
=
'hide'
;
pieceWidth
:
number
=
400
;
urlIcon
:
string
=
'url("../../../assets/background-images/step.png")'
;
constructor
(
protected
pieceDetailsService
:
PieceDetailsService
,
public
dialog
:
MatDialog
,
protected
tooltipService
:
TooltipService
)
{
}
...
...
@@ -102,4 +103,13 @@ export class StepComponent implements OnInit {
this
.
displayMenu
=
'hide'
;
this
.
mission
.
equalizeLengths
();
}
FirstStepIndex
():
number
{
for
(
let
i
=
0
;
i
<
this
.
parent
.
chronologie
.
length
;
i
++
)
{
if
(
this
.
parent
.
chronologie
[
i
]
instanceof
Step
)
{
return
i
;
}
}
return
0
;
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment