diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostThumbnail.h b/retroshare-gui/src/gui/gxschannels/GxsChannelPostThumbnail.h index 4a0ae5855..f9ce488a0 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostThumbnail.h +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostThumbnail.h @@ -98,7 +98,7 @@ public: lb->setFixedSize(W,H); lb->setPixmap(thumbnail); - lt->setText(msg); + setText(msg); QFont font = lt->font(); @@ -116,7 +116,16 @@ public: } void setPixmap(const QPixmap& p) { lb->setPixmap(p); } - void setText(const QString& s) { lt->setText(s); } + void setText(const QString& s) + { + QString ss; + if(s.length() > 30) + ss = s.left(30)+"..."; + else + ss =s; + + lt->setText(ss); + } private: QLabel *lb; diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp index 093c5b12c..1265f531f 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.cpp @@ -262,7 +262,7 @@ GxsChannelPostsWidgetWithModel::GxsChannelPostsWidgetWithModel(const RsGxsGroupI ui->postTime_LB->hide(); ui->postLogo_LB->hide(); - ui->postDetails_TE->setPlaceholderText(tr("No post selected")); + ui->postDetails_TE->setPlaceholderText(tr("No text to display")); // Set initial size of the splitter ui->splitter->setStretchFactor(0, 1); diff --git a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.ui b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.ui index 2886e8dbe..e20b1413b 100644 --- a/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.ui +++ b/retroshare-gui/src/gui/gxschannels/GxsChannelPostsWidgetWithModel.ui @@ -161,7 +161,7 @@ - 0 + 1 @@ -526,7 +526,7 @@ p, li { white-space: pre-wrap; } - Files + All files