Skip to content

Commit

Permalink
UI|Home: Size of the package info dialog
Browse files Browse the repository at this point in the history
Use the wider layout only if the package description isn’t short.
  • Loading branch information
skyjake committed Apr 2, 2017
1 parent 73ca0e0 commit 1323d8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/apps/client/src/ui/dialogs/packageinfodialog.cpp
Expand Up @@ -503,7 +503,8 @@ void PackageInfoDialog::prepare()

// Monospace text implies that there is an DOS-style readme text
// file included in the notes.
bool const useWideLayout = d->description->text().contains(_E(m));
bool const useWideLayout = d->description->text().contains(_E(m)) &&
d->description->text().size() > 200; // reasonably long?

// Update the width of the dialog. Don't let it get wider than the window.
d->descriptionWidth->setSource(OperatorRule::minimum(
Expand Down

0 comments on commit 1323d8f

Please sign in to comment.