Skip to content

Commit

Permalink
Fixed talent layout in ship view
Browse files Browse the repository at this point in the history
  • Loading branch information
qkmaxware committed Apr 30, 2021
1 parent 151a229 commit 7d9d5cf
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 20 deletions.
18 changes: 8 additions & 10 deletions TrekSharp.AdventureTools/Pages/ViewNpcShip.razor
Original file line number Diff line number Diff line change
Expand Up @@ -89,16 +89,14 @@
<div class="hbar row-fill elbow-right knee-right"></div>
</div>
<div class="w3-padding row-fill">
@foreach (var group in Ship.Talents.ByN(3)) {
<div class="w3-row-padding">
@foreach (var talent in group) {
<div class="w3-col s4 w3-border-bottom">
<b>@talent.Name</b>
<p class="w3-small">@talent.Description</p>
</div>
}
</div>
}
<Col3Layout Items=Ship.Talents>
<Template>
<div class="w3-border-bottom">
<b>@context.Name</b>
<p class="w3-small">@context.Description</p>
</div>
</Template>
</Col3Layout>
</div>
</div>
</LCARS>
Expand Down
18 changes: 8 additions & 10 deletions TrekSharp.AdventureTools/Pages/ViewShip.razor
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,14 @@
<div class="hbar row-fill elbow-right knee-right"></div>
</div>
<div class="w3-padding row-fill">
@foreach (var group in Ship.Talents.ByN(3)) {
<div class="w3-row-padding">
@foreach (var talent in group) {
<div class="w3-col s4 w3-border-bottom">
<b>@talent.Name</b>
<p class="w3-small">@talent.Description</p>
</div>
}
</div>
}
<Col3Layout Items=Ship.Talents>
<Template>
<div class="w3-border-bottom">
<b>@context.Name</b>
<p class="w3-small">@context.Description</p>
</div>
</Template>
</Col3Layout>
</div>
</div>
</LCARS>
Expand Down

0 comments on commit 7d9d5cf

Please sign in to comment.