Skip to content

Commit

Permalink
make portfolio views less wide
Browse files Browse the repository at this point in the history
  • Loading branch information
rrelyea committed Jun 23, 2023
1 parent 13c6424 commit e9ed88e
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions Pages/Portfolio.razor
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
</th>
<th style=padding-left:8px>Quantity</th>
<th style=padding-left:8px>Balance</th>
<th style=text-align:right;padding-left:8px>% change<br/>today</th>
<th style=padding-left:8px>as of</th>
<th style=text-align:right;padding-left:8px>Today's<br/>Change</th>
</tr>
}
@foreach (var investment in familyData.GroupedInvestments) {
Expand All @@ -155,17 +154,20 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
<td style=text-align:right;padding-left:8px>@formatMoney(investment.Price)</td>
<td style=text-align:right;padding-left:8px>@formatDoubleFourDecimal(investment.Shares)</td>
<td style=text-align:right;padding-left:8px>@formatMoney(investment.Value)</td>
<td style=text-align:right;padding-left:8px>@formatPercent3(investment.PercentChange)</td>
<td style=text-align:right;padding-left:8px title=@investment.LastUpdated>@investment.LastUpdated?.ToShortTimeString()</td>
<td style=text-align:right;padding-left:8px>@formatPercent3(investment.PercentChange)@if(investment.LastUpdated!=null){<br/><span>@investment.LastUpdated?.ToShortTimeString()</span>}</td>
<td style=text-align:right;padding-left:8px title=@investment.LastUpdated></td>
</tr>
}
<tr>
<td colspan=5><hr/></td>
</tr>
<tr>
<td style=text-align:right;padding-left:8px colspan="4">
<hr/><b>@(formatMoney(familyData.Value))</b>
<br/>today's change: <i>@formatMoney(portfolioChange())</i>
<b>@(formatMoney(familyData.Value))</b>
</td>
<td>
<i>@formatMoney(portfolioChange())</i>
</td>
<td></td>
<td></td>
</tr>
</table>
break;
Expand All @@ -186,14 +188,12 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
</th>
<th style=padding-left:8px>Quantity</th>
<th style=padding-left:8px>Balance</th>
<th style=text-align:right;padding-left:8px>% change<br/>today</th>
<th style=padding-left:8px>as of</th>
</tr>
}
@foreach (var account in familyData.Accounts) {
<tr>
<td colspan=6>
<i>@((account.Custodian != null ? account.Custodian + " ": "")+ account.Note) @account.Identifier @account.AccountType</i>
<u>@((account.Custodian != null ? account.Custodian + " ": "")+ account.Note) @account.Identifier @account.AccountType</u>
</td>
</tr>
@foreach (var investment in account.Investments) {
Expand All @@ -202,8 +202,6 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
<td style=text-align:right;padding-left:8px>@formatMoney(investment.Price)</td>
<td style=text-align:right;padding-left:8px>@formatDoubleFourDecimal(investment.Shares)</td>
<td style=text-align:right;padding-left:8px>@formatMoney(investment.Value)</td>
<td style=text-align:right;padding-left:8px>@formatPercent3(investment.PercentChange)</td>
<td style=text-align:right;padding-left:8px title=@investment.LastUpdated>@investment.LastUpdated?.ToShortTimeString()</td>
</tr>
}
}
Expand All @@ -212,8 +210,6 @@ Portfolio@(stepPath==null?": review":": "+stepPath.Replace('-',' ')) - bogle.too
<hr/><b>@(formatMoney(familyData.Value))</b>
<br/>today's change: <i>@formatMoney(portfolioChange())</i>
</td>
<td></td>
<td></td>
</tr>
</table>
break;
Expand Down

0 comments on commit e9ed88e

Please sign in to comment.