Author: snoopdave
Date: Sun Jul 26 01:01:14 2009
New Revision: 797858

URL: http://svn.apache.org/viewvc?rev=797858&view=rev
Log:
Layout of the mediafile list is bad if the file name is so long that it wraps 
around, tried it out Firefox 3.5 and Safari 4.0. This commit adds a 
<str:truncateNicely> tag around the name to limit it's length and prevent the 
layout problem.

Modified:
    roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/MediaFileView.jsp

Modified: roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/MediaFileView.jsp
URL: 
http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/MediaFileView.jsp?rev=797858&r1=797857&r2=797858&view=diff
==============================================================================
--- roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/MediaFileView.jsp 
(original)
+++ roller/trunk/apps/weblogger/web/WEB-INF/jsps/editor/MediaFileView.jsp Sun 
Jul 26 01:01:14 2009
@@ -306,7 +306,14 @@
         <div style="border:1px solid 
#000000;width:120px;height:100px;margin:5px;">
         <img border="0" src='<s:property value="%{mediaFileURL}" />' <s:if 
test="#mediaFile.imageFile"> width="120px" height="100px" </s:if> 
<s:else>style="padding:40px 50px;"</s:else>/>
         </div>
-        <div 
style="clear:left;width:130px;margin-left:5px;font-size:11px;"><label><s:property
 value="#mediaFile.name" /></label>
+        <div style="clear:left;width:130px;margin-left:5px;font-size:11px;">
+
+        <label>
+           <str:truncateNicely upper="50">
+               <s:property value="#mediaFile.name" />
+           </str:truncateNicely>
+        </label>
+
         <div style="padding-top:5px;">   <!--  one -->
         <input style="float:left;" type="checkbox" name="selectedMediaFiles" 
value="<s:property value="#mediaFile.id"/>"/>
         <INPUT TYPE="hidden" id="mediafileidentity" value="<s:property 
value='#mediaFile.id'/>">


Reply via email to