[ticket/7332] Collapse post details content down to a maximum of 300px heigh

The MCP post details can be difficult to use if the post is particularly long
this change shrinks the post area to a maximum of 300 pixels, like the topic
review, making it easier to access the functions beneath the post content.

PHPBB3-7332
This commit is contained in:
Chris Smith 2010-08-08 22:49:48 +01:00
parent e1328e87ce
commit 42e7c8a440
2 changed files with 12 additions and 1 deletions

View file

@ -54,6 +54,8 @@
</ul>
<!-- ENDIF -->
<span class="right-box clear" id="expand"><a href="#post_details" onclick="viewableArea(getElementById('post_details'), true); var rev_text = getElementById('expand').getElementsByTagName('a').item(0).firstChild; if (rev_text.data == '{LA_EXPAND_VIEW}'){rev_text.data = '{LA_COLLAPSE_VIEW}'; } else if (rev_text.data == '{LA_COLLAPSE_VIEW}'){rev_text.data = '{LA_EXPAND_VIEW}'}; return false;">{L_EXPAND_VIEW}</a></span>
<h3><a href="{U_VIEW_POST}">{POST_SUBJECT}</a></h3>
<!-- IF S_PM -->
<p class="author">
@ -84,7 +86,7 @@
</p>
<!-- ENDIF -->
<div class="content">
<div class="content" id="post_details">
{POST_PREVIEW}
</div>

View file

@ -298,6 +298,15 @@ div[class].topic-actions {
display: none;
}
/* MCP Post details
----------------------------------------*/
#post_details
{
/* This will only work in IE7+, plus the others */
overflow: auto;
max-height: 300px;
}
/* Content container styles
----------------------------------------*/
.content {