fix preview window size.

This commit is contained in:
Matthew K. Fu JuYuan 2012-04-13 16:46:16 +08:00
parent 0fe5baf93f
commit 4af73ecf6f
3 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,4 @@
.banner-preview {
width: auto;
left: 35%;
}

View File

@ -1,7 +1,7 @@
<% if ad_banner -%> <% if ad_banner -%>
<%= link_to 'Preview',"#slideshow-#{ad_banner.title.dehumanize}",:class=>"btn btn-primary btn-large",:data=>{:toggle=>'modal'} %> <%= link_to 'Preview',"#slideshow-#{ad_banner.title.dehumanize}",:class=>"btn btn-primary btn-large",:data=>{:toggle=>'modal'} %>
<div class="modal hide fade in" id='slideshow-<%=ad_banner.title.dehumanize%>'> <div class="modal hide fade in banner-preview" id='slideshow-<%=ad_banner.title.dehumanize%>'>
<div class="modal-header"> <div class="modal-header">
<a class="close" data-dismiss="modal">×</a> <a class="close" data-dismiss="modal">×</a>
<h3>Modal header</h3> <h3>Modal header</h3>

View File

@ -1,3 +1,5 @@
<%= stylesheet_link_tag "admin/ad_banner_preview" %>
<div id="post-body-content" class="clear"> <div id="post-body-content" class="clear">
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<% @ad_banners.each do |ab| %> <% @ad_banners.each do |ab| %>