blog photo size

vnext
Paul Schneider 7 years ago
parent b7c2de71ab
commit 1686504aea
3 changed files with 5 additions and 3 deletions

@ -67,9 +67,9 @@
<div class="row @trclass"> <div class="row @trclass">
<div class="col-xs-10"> <div class="col-xs-10">
<a asp-action="Title" asp-route-id="@title" > <a asp-action="Title" asp-route-id="@title" >
@if (first.Photo==null) { }
else {<img src="@first.Photo" class="smallphoto" alt="@first.Title">}
<markdown>@first.Title</markdown> <markdown>@first.Title</markdown>
@if (first.Photo==null) { }
else {<img src="@first.Photo" class="blogphoto" alt="@first.Title">}
</a> </a>
<markdown>@((first.Content?.Length > 120) ? first.Content.Substring(0, 120) + " ..." : first.Content)</markdown> <markdown>@((first.Content?.Length > 120) ? first.Content.Substring(0, 120) + " ..." : first.Content)</markdown>

@ -27,7 +27,7 @@
<tr class="@trclass"> <tr class="@trclass">
<td><a asp-action="Details" asp-route-id="@item.Id" class="bloglink"> <td><a asp-action="Details" asp-route-id="@item.Id" class="bloglink">
<img src="@item.Photo" class="smallphoto"></a> <img src="@item.Photo" class="blogphoto"></a>
</td> </td>
<td> <td>
<markdown>@((item.Content?.Length > 120) ? item.Content.Substring(0, 122) + " ..." : item.Content)</markdown> <markdown>@((item.Content?.Length > 120) ? item.Content.Substring(0, 122) + " ..." : item.Content)</markdown>

@ -374,6 +374,8 @@ footer {
.blogphoto { .blogphoto {
float: left; float: left;
margin: 1em; margin: 1em;
max-width: 100em;
max-height: 100em;
} }
.dl-horizontal dd { .dl-horizontal dd {

Loading…