simpler sidebar width setting

This commit is contained in:
Tom Giannattasio
2012-09-05 10:23:25 -04:00
parent 925caac649
commit 098e7022cf
2 changed files with 3 additions and 2 deletions

View File

@@ -35,7 +35,8 @@ class @DiscussionThreadListView extends Backbone.View
sidebar.removeClass('fixed');
sidebar.css('top', '0');
sidebarWidth = .32 * $(".discussion-body").width() - 10;
# sidebarWidth = .32 * $(".discussion-body").width() - 10;
sidebarWidth = .31 * $(".discussion-body").width();
sidebar.css('width', sidebarWidth + 'px');
sidebarHeight = windowHeight - Math.max(discussionsBodyTop - scrollTop, @sidebar_padding)

View File

@@ -551,7 +551,7 @@ body.discussion {
.sidebar {
float: left;
@include box-sizing(border-box);
width: 32%;
width: 31%;
height: 550px;
border: 1px solid #aaa;
box-shadow: 0 1px 2px rgba(0, 0, 0, .05);