Skip to content

Commit

Permalink
Avoid re-layout (a liitle)
Browse files Browse the repository at this point in the history
  • Loading branch information
yayugu committed Oct 29, 2015
1 parent a114438 commit 6e278fc
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
22 changes: 12 additions & 10 deletions app/views/comic/_list.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,21 @@
@foreach ($comics as $comic)
<tr>
<td>
{? $thumb = $comic->getThumbnailURL(); ?}
@if ($thumb)
<img src="{{$thumb}}" width="100px">
@endif
<div class="comic-list-row-wrapper">
{? $thumb = $comic->getThumbnailURL(); ?}
@if ($thumb)
<img src="{{$thumb}}" width="100px">
@endif
</div>
</td>

<td>
{{link_to_action('comicInfo', $comic->getFileNameToShow(), ['id' => $comic->id])}}
<a href="{{$comic->getUrlToShow()}}" class="btn btn-default btn-xs">View</a>
<span
class="favorite-button"
data-comic-id="{{$comic->id}}"
data-starred="{{ array_key_exists($comic->id, $favoritesHash) ? 'true' : 'false' }}"></span>
{{link_to_action('comicInfo', $comic->getFileNameToShow(), ['id' => $comic->id])}}
<a href="{{$comic->getUrlToShow()}}" class="btn btn-default btn-xs">View</a>
<span
class="favorite-button"
data-comic-id="{{$comic->id}}"
data-starred="{{ array_key_exists($comic->id, $favoritesHash) ? 'true' : 'false' }}"></span>
</td>
</tr>
@endforeach
Expand Down
5 changes: 5 additions & 0 deletions public/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@
.favorite-button-full {
color: #E3CF7A;
}

/* avoid re-layout (a liitle) */
.comic-list-row-wrapper {
min-height: 42px;
}

0 comments on commit 6e278fc

Please sign in to comment.