Skip to content

Commit

Permalink
Added ui-tooltip CSS style to relax max-width on template previews
Browse files Browse the repository at this point in the history
  • Loading branch information
brzaik committed Mar 14, 2012
1 parent 004b587 commit e11ea60
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@
float: left !important;
}

// Added by brz: Relaxes the max-width so that content can be fully displayed
.ui-tooltip-bigenough {
max-width: 900px;
}

.ui-tooltip-content {
position: relative;
padding: 5px 9px;
Expand Down
6 changes: 3 additions & 3 deletions app/views/screens/_form.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
<%= f.radio_button :template_id, template.id %>
</div>

<%= image_tag preview_template_path(template, :height => 60, :format => :png), :style => "height: 60px; margin: 0px;" %>
<%= image_tag preview_template_path(template, :height => 60, :format => :png), :style => "margin: 0px;" %>

<div id="preview_<%= template.id %>" class="dd" style="display:none;">
<%= image_tag preview_template_path(template, :width => 260, :format => :png), :style => "width: 260px; margin: 0px;" %>
<%= image_tag preview_template_path(template, :width => 540, :height => 310, :aspect_ratio => true, :format => :png), :style => "margin: 0px;" %>

This comment has been minimized.

Copy link
@bamnet

bamnet Mar 14, 2012

Member

The aspect_ratio parameter here doesn't do anything. By default all template previews are only rendered in the correct aspect ratio (i.e scaled down to the limiting height or width). If we should do something different feel free to pop an issue in my direction.

</div>

<div class="cont">
Expand Down Expand Up @@ -133,7 +133,7 @@
},

hide: 'unfocus',
style: 'ui-tooltip-dark ui-tooltip-shadow ui-tooltip-rounded'
style: 'ui-tooltip-dark ui-tooltip-bigenough ui-tooltip-shadow ui-tooltip-rounded'
});
});
});
Expand Down

0 comments on commit e11ea60

Please sign in to comment.