Fix newline in description for store

This commit is contained in:
2025-05-28 20:39:23 -07:00
parent 1f83520d61
commit 42aa24411a
@@ -20,7 +20,11 @@
} }
</div> </div>
<h1 class ="gameCard-Name">@obj.Name</h1> <h1 class ="gameCard-Name">@obj.Name</h1>
<h2 class="gameCard-Desc">@obj.Description</h2> <div>
@foreach(string cur in @obj.Description.Split('\n')){
<h2 class="gameCard-Desc">@cur</h2>
}
</div>
<h2 class="gameCard-Price">$@((Convert.ToSingle(obj.Cost)/100f).ToString("0.00"))</h2> <h2 class="gameCard-Price">$@((Convert.ToSingle(obj.Cost)/100f).ToString("0.00"))</h2>
@if ( isOwned(obj.ID) ) { @if ( isOwned(obj.ID) ) {
<button class="gameCard-Button" @onclick="() => { Download(); }">Owned</button> <button class="gameCard-Button" @onclick="() => { Download(); }">Owned</button>