From b383142c1402b0d785d4a137722ece64fcb0af6b Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Wed, 24 Feb 2021 19:47:49 +0100 Subject: [PATCH] Set maximum height for author box on project settings --- nw/gui/projsettings.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nw/gui/projsettings.py b/nw/gui/projsettings.py index 75779cc8..3612e55e 100644 --- a/nw/gui/projsettings.py +++ b/nw/gui/projsettings.py @@ -169,7 +169,7 @@ class GuiProjectEditMain(QWidget): self.mainForm.addGroupLabel(self.tr("Project Settings")) xW = self.mainConf.pxInt(250) - xH = self.mainConf.pxInt(80) + xH = round(4.8*self.theParent.theTheme.fontPixelSize) self.editName = QLineEdit() self.editName.setMaxLength(200) @@ -192,7 +192,7 @@ class GuiProjectEditMain(QWidget): ) self.editAuthors = QPlainTextEdit() - self.editAuthors.setMinimumHeight(xH) + self.editAuthors.setMaximumHeight(xH) self.editAuthors.setMaximumWidth(xW) self.editAuthors.setPlainText("\n".join(self.theProject.bookAuthors)) self.mainForm.addRow(