Skip to content

Commit

Permalink
fix: x11 preview title length too small
Browse files Browse the repository at this point in the history
fix x11 preview title length too small

Log: fix x11 preview title length too small
Influence: x11 preview title display
  • Loading branch information
yixinshark authored and tsic404 committed May 14, 2024
1 parent b36a7ec commit be388a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panels/dock/taskmanager/x11preview.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,8 @@ void X11WindowPreviewContainer::updateSize()
setMinimumSize(0, 0);

m_view->setMaximumHeight(m_view->viewportSizeHint().height());
m_previewTitle->setMaximumWidth(m_view->width() - m_previewIcon->width() - m_closeAllButton->width() - 20);
int maxContentWidth = std::max(m_view->width(), PREVIEW_CONTENT_WIDTH);
m_previewTitle->setMaximumWidth(maxContentWidth - m_previewIcon->width() - m_closeAllButton->width() - 20);

QTimer::singleShot(0, this, &X11WindowPreviewContainer::adjustSize);
}
Expand Down

0 comments on commit be388a0

Please sign in to comment.