limites subject length in case of very long subjects
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/message-conversations@154420 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
b8642ea79d
commit
e3d624d272
|
@ -90,7 +90,7 @@ public class MessageItem extends Composite {
|
|||
}
|
||||
String fullName = (m.getOwner().getFullName() == null) ? m.getOwner().getUsername() : m.getOwner().getFullName();
|
||||
senderNameLabel.setText(fullName);
|
||||
subjectLabel.setText(m.getSubject());
|
||||
subjectLabel.setText(m.getSubject().length() > 40 ? m.getSubject().substring(0, 37)+" ...": m.getSubject());
|
||||
previewLabel.setText(m.getContent());
|
||||
timeLabel.setText(Utils.getFormatteDate(m.getDate()));
|
||||
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
fontSize=".8em" />
|
||||
<m:MaterialIcon iconType="KEYBOARD_ARROW_DOWN"
|
||||
iconSize="SMALL" visibility="HIDDEN" ui:field="messageActionIcon"
|
||||
iconColor="GREY" marginTop="5" />
|
||||
iconColor="GREY_DARKEN_1" marginTop="5" />
|
||||
<m:MaterialIcon iconType="ATTACHMENT" iconColor="GREY"
|
||||
marginLeft="10" ui:field="attachmentsIcon" visibility="HIDDEN"
|
||||
iconSize="TINY" title="This message has attachments" />
|
||||
|
||||
</m:MaterialCollectionSecondary>
|
||||
<m:MaterialDropDown ui:field="dd" activator=""
|
||||
constrainWidth="false" gutter="-100" hover="true" belowOrigin="true">
|
||||
constrainWidth="false" gutter="-100" hover="false" belowOrigin="false">
|
||||
<m:MaterialLink textColor="BLUE_DARKEN_1" ui:field="deleteButton"
|
||||
text="Delete Message" />
|
||||
<m:MaterialLink textColor="BLUE_DARKEN_1" ui:field="setUnreadButton"
|
||||
|
|
Loading…
Reference in New Issue