#7841 lack of blank space to separate the query term when hashtag is used

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@165181 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Massimiliano Assante 2018-03-16 14:00:13 +00:00
parent 9011d7142d
commit 5637c271dc
3 changed files with 5 additions and 4 deletions

View File

@ -9,6 +9,7 @@
in comments loses the focus.
</Change>
<Change>Feature #10192 allow to sort feeds per recent comments</Change>
<Change>Bug #7841 lack of blank space to separate the query term when hashtag is used</Change>
<Change>Support for ticket #11139</Change>
</Changeset>
<Changeset component="org.gcube.portlets-user.news-feed.2-5-0"

View File

@ -710,7 +710,7 @@ public class NewsFeedPanel extends Composite {
GWT.log("Retrieved " + feeds.size() + " hits for search.");
if (feeds.size() == 0) {
newsPanel.add(new ResultsFor("Results for query ", query));
newsPanel.add(new ResultsFor("Results for query: ", query));
newsPanel.add(new HTML("<div class=\"nofeed-message\" style=\"height: 200px;\">" +
"Sorry, looks like we found no match for: " + query +"</div>"));
}
@ -718,7 +718,7 @@ public class NewsFeedPanel extends Composite {
newsPanel.setHeight("");
newsPanel.setHorizontalAlignment(HasAlignment.ALIGN_LEFT);
newsPanel.setVerticalAlignment(HasVerticalAlignment.ALIGN_TOP);
newsPanel.add(new ResultsFor("Results for query ", query));
newsPanel.add(new ResultsFor("Results for query: ", query));
for (EnhancedFeed feed : feeds) {
newsPanel.add(new TweetTemplate(false, showFeedTimelineSource, myUserInfo, feed, eventBus)); //in the view
// save them (they will be used when asking more feeds)

View File

@ -23,9 +23,9 @@ public class ResultsFor extends Composite {
@UiField HTML resultForDiv;
public ResultsFor(String prefix, String hashtag) {
initWidget(uiBinder.createAndBindUi(this));
allUpdatesLink.setHTML("<a class=\"link\">All Updates</a>");
allUpdatesLink.setHTML("<a class=\"link\">All Posts</a>");
allUpdatesLink.getElement().getStyle().setCursor(Cursor.POINTER);
resultForDiv.setHTML(prefix + hashtag);
resultForDiv.setHTML(prefix + " <b>" + hashtag + "</b>");
resultForDiv.setStyleName("filter-selected");
}