removed the set unread option and visibility for sent messages, fixed some graphic issues related to the updated gwt material version
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/message-conversations@182151 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
fad3e36a5e
commit
fd855668cf
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
.marginTop {
|
.marginTop {
|
||||||
margin-top: 0px;
|
margin-top: 0px;
|
||||||
min-height: 600px;
|
min-height: 850px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.overflowXHidden {
|
.overflowXHidden {
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
textColor="BLUE" paddingLeft="0" />
|
textColor="BLUE" paddingLeft="0" />
|
||||||
<m:MaterialTitle ui:field="messageSender"
|
<m:MaterialTitle ui:field="messageSender"
|
||||||
addStyleNames="message-sender" marginTop="0"></m:MaterialTitle>
|
addStyleNames="message-sender" marginTop="0"></m:MaterialTitle>
|
||||||
<m:MaterialTitle ui:field="messageSubject" marginTop="0"></m:MaterialTitle>
|
<m:MaterialTitle addStyleNames="message-subject" ui:field="messageSubject" marginTop="0"></m:MaterialTitle>
|
||||||
<m:MaterialTitle ui:field="messageRecipients" visible="false"
|
<m:MaterialTitle ui:field="messageRecipients" visible="false"
|
||||||
addStyleNames="message-recipients" marginTop="0"></m:MaterialTitle>
|
addStyleNames="message-recipients" marginTop="0"></m:MaterialTitle>
|
||||||
<m:MaterialRow ui:field="messageAttachmentsBody"></m:MaterialRow>
|
<m:MaterialRow ui:field="messageAttachmentsBody"></m:MaterialRow>
|
||||||
|
|
|
@ -21,7 +21,6 @@ import com.google.gwt.user.client.Random;
|
||||||
import com.google.gwt.user.client.ui.Composite;
|
import com.google.gwt.user.client.ui.Composite;
|
||||||
import com.google.gwt.user.client.ui.Widget;
|
import com.google.gwt.user.client.ui.Widget;
|
||||||
|
|
||||||
import gwt.material.design.client.base.TransitionConfig;
|
|
||||||
import gwt.material.design.client.constants.Color;
|
import gwt.material.design.client.constants.Color;
|
||||||
import gwt.material.design.client.ui.MaterialCollection;
|
import gwt.material.design.client.ui.MaterialCollection;
|
||||||
import gwt.material.design.client.ui.MaterialCollectionItem;
|
import gwt.material.design.client.ui.MaterialCollectionItem;
|
||||||
|
@ -57,7 +56,7 @@ public class MessageItem extends Composite {
|
||||||
@UiField MaterialLabel timeLabel;
|
@UiField MaterialLabel timeLabel;
|
||||||
@UiField MaterialIcon attachmentsIcon;
|
@UiField MaterialIcon attachmentsIcon;
|
||||||
@UiField MaterialIcon messageActionIcon;
|
@UiField MaterialIcon messageActionIcon;
|
||||||
|
@UiField MaterialLink setUnreadButton;
|
||||||
@UiField MaterialLink deleteButton;
|
@UiField MaterialLink deleteButton;
|
||||||
@UiField MaterialDropDown dd;
|
@UiField MaterialDropDown dd;
|
||||||
|
|
||||||
|
@ -73,8 +72,11 @@ public class MessageItem extends Composite {
|
||||||
this.parentCollection = parentCollection;
|
this.parentCollection = parentCollection;
|
||||||
if (m.hasAttachments())
|
if (m.hasAttachments())
|
||||||
attachmentsIcon.setVisibility(Visibility.VISIBLE);
|
attachmentsIcon.setVisibility(Visibility.VISIBLE);
|
||||||
if (!m.isRead())
|
if (!sent && !m.isRead())
|
||||||
item.addStyleName("unread-message");
|
item.addStyleName("unread-message");
|
||||||
|
if (sent)
|
||||||
|
dd.remove(0); //remove the option to set unread if the message is sent
|
||||||
|
|
||||||
if (m.getOwner().getAvatarURL() == null || m.getOwner().getAvatarURL().compareTo("")== 0) {
|
if (m.getOwner().getAvatarURL() == null || m.getOwner().getAvatarURL().compareTo("")== 0) {
|
||||||
if (sent)
|
if (sent)
|
||||||
avatarImage.setResource(
|
avatarImage.setResource(
|
||||||
|
|
|
@ -53,13 +53,20 @@
|
||||||
.message-metadata>div.message-sender h4 {
|
.message-metadata>div.message-sender h4 {
|
||||||
font-size: 2.2em;
|
font-size: 2.2em;
|
||||||
font-weight: 500 !important;
|
font-weight: 500 !important;
|
||||||
|
margin-top: 20px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.message-metadata>div.message-subject h4 {
|
||||||
|
margin-top: 20px !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.message-metadata>div.message-recipients h4 {
|
.message-metadata>div.message-recipients h4 {
|
||||||
font-size: 1.6em;
|
font-size: 1.6em;
|
||||||
color: #555;
|
color: #555;
|
||||||
padding-bottom: 5px;
|
padding-bottom: 5px;
|
||||||
border-bottom: 1px solid grey;
|
border-bottom: 1px solid grey;
|
||||||
|
margin-top: 20px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.gwt-SuggestBoxPopup .item-selected {
|
.gwt-SuggestBoxPopup .item-selected {
|
||||||
|
|
Loading…
Reference in New Issue