mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-10-30 17:40:47 +03:00
Remove the extra top margin from timeline widgets
This commit is contained in:
parent
5caaa9d3c4
commit
8dd21b1dae
2 changed files with 3 additions and 3 deletions
|
@ -193,7 +193,7 @@ TimelineItem::setupLocalWidgetLayout(Widget *widget, const QString &userid, bool
|
|||
generateTimestamp(timestamp);
|
||||
|
||||
widgetLayout_ = new QHBoxLayout;
|
||||
widgetLayout_->setContentsMargins(0, 5, 0, 0);
|
||||
widgetLayout_->setMargin(0);
|
||||
widgetLayout_->addWidget(widget);
|
||||
widgetLayout_->addStretch(1);
|
||||
|
||||
|
@ -239,7 +239,7 @@ TimelineItem::setupWidgetLayout(Widget *widget, const Event &event, bool withSen
|
|||
generateTimestamp(timestamp);
|
||||
|
||||
widgetLayout_ = new QHBoxLayout();
|
||||
widgetLayout_->setContentsMargins(0, 5, 0, 0);
|
||||
widgetLayout_->setMargin(0);
|
||||
widgetLayout_->addWidget(widget);
|
||||
widgetLayout_->addStretch(1);
|
||||
|
||||
|
|
|
@ -597,7 +597,7 @@ TimelineItem::addAvatar()
|
|||
// Restore widget's layout.
|
||||
if (widget) {
|
||||
widgetLayout_ = new QHBoxLayout();
|
||||
widgetLayout_->setContentsMargins(0, 5, 0, 0);
|
||||
widgetLayout_->setMargin(0);
|
||||
widgetLayout_->addWidget(widget);
|
||||
widgetLayout_->addStretch(1);
|
||||
|
||||
|
|
Loading…
Reference in a new issue