Skip to content

Commit

Permalink
fix image max-width
Browse files Browse the repository at this point in the history
  • Loading branch information
digitaltom committed Mar 13, 2012
1 parent 3e8d792 commit d95fde7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/search/_find_form.rhtml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script type="text/javascript">

var last_search = "<%= CGI::escape( @search_term ) %>";
var last_search = "<%= CGI::escape( @search_term || "" ) %>";

function afterDelayedKeyup(selector, action, delay){
jQuery(selector).keyup(function(){
Expand Down
2 changes: 1 addition & 1 deletion app/views/search/_find_results.rhtml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<% @result.each do |package| %>

<li>
<div class="app-screenshot">
<div class="app-screenshot-search">
<%= image_tag( screenshot_thumb_url( package[:name] ), :height => 75 ) %>
</div>
<div class="search-result-txt">
Expand Down
12 changes: 10 additions & 2 deletions public/stylesheets/software.css
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ input[type="submit"].search-go-button {
padding: 0.3em;
}

.app-screenshot {
.app-screenshot, .app-screenshot-search {
float: left;
margin-right: 25px;
border: 1px solid white;
Expand All @@ -224,7 +224,15 @@ input[type="submit"].search-go-button {
}

.app-screenshot ~ p, .app-screenshot ~ a#one-click-button { /* If screenshot is available sibling <p> get left margin.*/
margin-left: 215px;
margin-left: 215px;
}

.app-screenshot a img {
max-width: 190px;
}

.app-screenshot-search a img, .app-screenshot-search img {
max-width: 125px;
}

.box-header a.pkg-backlink {
Expand Down

0 comments on commit d95fde7

Please sign in to comment.