From 4373037071a38fbdd8c93d784ac55d79fb244c00 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Thu, 22 Aug 2013 04:05:48 +0800 Subject: [PATCH] fixed composer window having 0 width; recent replies looks gud again --- public/css/category.less | 6 +++--- public/css/style.less | 5 +++++ public/src/modules/composer.js | 8 ++++---- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/public/css/category.less b/public/css/category.less index c91dfe1166..1f710f0b38 100644 --- a/public/css/category.less +++ b/public/css/category.less @@ -150,7 +150,7 @@ li { clear: both; - line-height: 16px; + line-height: 17px; margin-bottom: 1em; &:last-child { @@ -166,8 +166,8 @@ padding-left:5px; padding-top: 2px; overflow: hidden; - height: 32px; - margin-bottom: 0.1em; + height: 35px; + margin-bottom: 1px; } span { font-size: 12px; diff --git a/public/css/style.less b/public/css/style.less index 7f5ca9260e..350deb5391 100644 --- a/public/css/style.less +++ b/public/css/style.less @@ -448,11 +448,14 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus { } } + +/* START: post-window needs to go in its own plugin area */ .post-window { position: fixed; display: none; height: 350px; visibility: hidden; + width: 100%; > div { position: absolute; @@ -550,6 +553,8 @@ a:hover, .btn-link:hover, .btn-link:active, .btn-link:focus { } } } +/* END: post-window needs to go in its own plugin area */ + #mobile-menu { diff --git a/public/src/modules/composer.js b/public/src/modules/composer.js index 47b8b72223..aee7dec71b 100644 --- a/public/src/modules/composer.js +++ b/public/src/modules/composer.js @@ -109,8 +109,8 @@ define(['taskbar'], function(taskbar) { var taskbar = document.getElementById('taskbar'); composer.postContainer = document.createElement('div'); - composer.postContainer.className = 'post-window row-fluid'; - composer.postContainer.innerHTML = '
' + + composer.postContainer.className = 'post-window row'; + composer.postContainer.innerHTML = '
' + '' + '
' + '
' + @@ -125,7 +125,7 @@ define(['taskbar'], function(taskbar) { '
Drag and Drop Images Here
'+ '
' + '
' + - '' + + '' + '' + '' + '
' + @@ -312,7 +312,7 @@ define(['taskbar'], function(taskbar) { } composer.reposition = function(post_uuid) { - var postWindowEl = composer.postContainer.querySelector('.span5'), + var postWindowEl = composer.postContainer.querySelector('.col-md-5'), taskbarBtn = document.querySelector('#taskbar [data-uuid="' + post_uuid + '"]'), btnRect = taskbarBtn.getBoundingClientRect(), taskbarRect = document.getElementById('taskbar').getBoundingClientRect(),