Skip to content

Commit

Permalink
Tweak magazines tab layout
Browse files Browse the repository at this point in the history
  • Loading branch information
ping committed Aug 1, 2023
1 parent e0fca1c commit f3e7f60
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions calibre-plugin/dialog/magazines.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,8 @@ def __init__(self, gui, icon, do_user_config, icons):
magazines_widget.layout = QGridLayout()
for col_num in range(1, self.view_hspan - 2):
magazines_widget.layout.setColumnStretch(col_num, 1)
magazines_widget.layout.setColumnMinimumWidth(0, self.min_button_width)
magazines_widget.layout.setColumnMinimumWidth(
self.view_hspan - 1, self.min_button_width
)
for i in (0, self.view_hspan - 1, self.view_hspan - 2):
magazines_widget.layout.setColumnMinimumWidth(i, self.min_button_width)
magazines_widget.setLayout(magazines_widget.layout)
widget_row_pos = 0

Expand Down

0 comments on commit f3e7f60

Please sign in to comment.