diff options
author | Chris Smith <toonarmy@phpbb.com> | 2010-08-08 22:49:48 +0100 |
---|---|---|
committer | Chris Smith <toonarmy@phpbb.com> | 2010-08-08 22:49:48 +0100 |
commit | 42e7c8a44099f16c8695c3870ac3f8abcbb89a21 (patch) | |
tree | c2197178b6d014e47c718268eae5a51ee7d31a4e /phpBB | |
parent | e1328e87ce23245dbd55a08fbaf3d48e957a6777 (diff) | |
download | forums-42e7c8a44099f16c8695c3870ac3f8abcbb89a21.tar forums-42e7c8a44099f16c8695c3870ac3f8abcbb89a21.tar.gz forums-42e7c8a44099f16c8695c3870ac3f8abcbb89a21.tar.bz2 forums-42e7c8a44099f16c8695c3870ac3f8abcbb89a21.tar.xz forums-42e7c8a44099f16c8695c3870ac3f8abcbb89a21.zip |
[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
Diffstat (limited to 'phpBB')
-rw-r--r-- | phpBB/styles/prosilver/template/mcp_post.html | 4 | ||||
-rw-r--r-- | phpBB/styles/prosilver/theme/content.css | 9 |
2 files changed, 12 insertions, 1 deletions
diff --git a/phpBB/styles/prosilver/template/mcp_post.html b/phpBB/styles/prosilver/template/mcp_post.html index 0265d7ce12..dab2d572a9 100644 --- a/phpBB/styles/prosilver/template/mcp_post.html +++ b/phpBB/styles/prosilver/template/mcp_post.html @@ -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> diff --git a/phpBB/styles/prosilver/theme/content.css b/phpBB/styles/prosilver/theme/content.css index 417537e660..dfe00371e4 100644 --- a/phpBB/styles/prosilver/theme/content.css +++ b/phpBB/styles/prosilver/theme/content.css @@ -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 { |