From 92b60c87c45afbb25ae3ed993a7669da2434e078 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 4 Nov 2019 15:15:45 +0530 Subject: [PATCH] Fix #1850922 [[Enhancement] Make the buttons the same size](https://bugs.launchpad.net/calibre/+bug/1850922) --- src/calibre/gui2/dialogs/book_info.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/dialogs/book_info.py b/src/calibre/gui2/dialogs/book_info.py index 6ce5a35759..1eb7ac532a 100644 --- a/src/calibre/gui2/dialogs/book_info.py +++ b/src/calibre/gui2/dialogs/book_info.py @@ -132,11 +132,14 @@ class BookInfo(QDialog): self.fit_cover = QCheckBox(_('Fit &cover within view'), self) self.fit_cover.setChecked(gprefs.get('book_info_dialog_fit_cover', True)) - l2.addWidget(self.fit_cover, l2.rowCount(), 0, 1, 1) + self.hl = hl = QHBoxLayout() + hl.setContentsMargins(0, 0, 0, 0) + l2.addLayout(hl, l2.rowCount(), 0, 1, -1) + hl.addWidget(self.fit_cover), hl.addStretch() self.clabel = QLabel('
{}'.format( _('Configure this view'), _('Configure'))) self.clabel.linkActivated.connect(self.configure) - l2.addWidget(self.clabel, l2.rowCount() - 1, 1, 1, 1) + hl.addWidget(self.clabel) self.previous_button = QPushButton(QIcon(I('previous.png')), _('&Previous'), self) self.previous_button.clicked.connect(self.previous) l2.addWidget(self.previous_button, l2.rowCount(), 0)