diff --git a/qt/aqt/about.py b/qt/aqt/about.py index 3dc1199ba..37ab90a1a 100644 --- a/qt/aqt/about.py +++ b/qt/aqt/about.py @@ -202,7 +202,7 @@ def show(mw: aqt.AnkiQt) -> QDialog: ) abouttext += f"

{tr.about_if_you_have_contributed_and_are()}" abouttext += f"

{tr.about_a_big_thanks_to_all_the()}" - abt.label.setMinimumWidth(800) + abt.label.setMinimumWidth(400) abt.label.setMinimumHeight(600) dialog.show() abt.label.stdHtml(abouttext, js=[]) diff --git a/qt/aqt/addcards.py b/qt/aqt/addcards.py index 34bfb10c5..5a9c6e89e 100644 --- a/qt/aqt/addcards.py +++ b/qt/aqt/addcards.py @@ -46,7 +46,7 @@ class AddCards(QMainWindow): self.form = form self.setWindowTitle(tr.actions_add()) self.setMinimumHeight(300) - self.setMinimumWidth(400) + self.setMinimumWidth(200) self.setup_choosers() self.setupEditor() add_close_shortcut(self) diff --git a/qt/aqt/clayout.py b/qt/aqt/clayout.py index 19fa0fa22..f087a3094 100644 --- a/qt/aqt/clayout.py +++ b/qt/aqt/clayout.py @@ -821,7 +821,7 @@ class CardLayout(QDialog): d = QDialog(self) d.setWindowTitle("Anki") disable_help_button(d) - d.setMinimumWidth(400) + d.setMinimumWidth(200) l = QVBoxLayout() lab = QLabel( tr.card_templates_enter_deck_to_place_new(val="%s") diff --git a/qt/aqt/deckdescription.py b/qt/aqt/deckdescription.py index 01b41eaaf..cd91c0906 100644 --- a/qt/aqt/deckdescription.py +++ b/qt/aqt/deckdescription.py @@ -42,7 +42,7 @@ class DeckDescriptionDialog(QDialog): self.setWindowTitle(tr.scheduling_description()) self.setWindowModality(Qt.WindowModality.ApplicationModal) self.mw.garbage_collect_on_dialog_finish(self) - self.setMinimumWidth(400) + self.setMinimumWidth(200) disable_help_button(self) restoreGeom(self, self.TITLE) addCloseShortcut(self) diff --git a/qt/aqt/deckoptions.py b/qt/aqt/deckoptions.py index 28600545c..2558bd0bd 100644 --- a/qt/aqt/deckoptions.py +++ b/qt/aqt/deckoptions.py @@ -37,7 +37,7 @@ class DeckOptionsDialog(QDialog): def _setup_ui(self) -> None: self.setWindowModality(Qt.WindowModality.ApplicationModal) self.mw.garbage_collect_on_dialog_finish(self) - self.setMinimumWidth(400) + self.setMinimumWidth(200) disable_help_button(self) restoreGeom(self, self.TITLE, default_size=(800, 800)) addCloseShortcut(self) diff --git a/qt/aqt/editcurrent.py b/qt/aqt/editcurrent.py index 48140d789..b8e3f9481 100644 --- a/qt/aqt/editcurrent.py +++ b/qt/aqt/editcurrent.py @@ -18,7 +18,7 @@ class EditCurrent(QMainWindow): self.form.setupUi(self) self.setWindowTitle(tr.editing_edit_current()) self.setMinimumHeight(400) - self.setMinimumWidth(250) + self.setMinimumWidth(125) self.editor = aqt.editor.Editor( self.mw, self.form.fieldsArea, diff --git a/qt/aqt/mediacheck.py b/qt/aqt/mediacheck.py index d9691c500..8708e475c 100644 --- a/qt/aqt/mediacheck.py +++ b/qt/aqt/mediacheck.py @@ -157,7 +157,7 @@ class MediaChecker: qconnect(box.rejected, diag.reject) diag.setMinimumHeight(400) - diag.setMinimumWidth(500) + diag.setMinimumWidth(250) restoreGeom(diag, "checkmediadb", default_size=(800, 800)) diag.exec() saveGeom(diag, "checkmediadb") diff --git a/qt/aqt/progress.py b/qt/aqt/progress.py index 692268a79..60ca1fde9 100644 --- a/qt/aqt/progress.py +++ b/qt/aqt/progress.py @@ -154,7 +154,7 @@ class ProgressManager: self._win.form.label.setText(label) self._win.setWindowTitle("Anki") self._win.setWindowModality(Qt.WindowModality.ApplicationModal) - self._win.setMinimumWidth(300) + self._win.setMinimumWidth(150) self._busy_cursor_timer = QTimer(self.mw) self._busy_cursor_timer.setSingleShot(True) self._busy_cursor_timer.start(300) diff --git a/qt/aqt/stats.py b/qt/aqt/stats.py index 388f2d89e..fe4ab36e8 100644 --- a/qt/aqt/stats.py +++ b/qt/aqt/stats.py @@ -38,7 +38,7 @@ class NewDeckStats(QDialog): self.form = aqt.forms.stats.Ui_Dialog() self.oldPos = None self.wholeCollection = False - self.setMinimumWidth(700) + self.setMinimumWidth(350) disable_help_button(self) f = self.form f.setupUi(self) @@ -149,7 +149,7 @@ class DeckStats(QDialog): self.form = aqt.forms.stats.Ui_Dialog() self.oldPos = None self.wholeCollection = False - self.setMinimumWidth(700) + self.setMinimumWidth(350) disable_help_button(self) f = self.form if theme_manager.night_mode and not theme_manager.macos_dark_mode(): diff --git a/qt/aqt/utils.py b/qt/aqt/utils.py index d89c9fbf6..5cdbb3579 100644 --- a/qt/aqt/utils.py +++ b/qt/aqt/utils.py @@ -328,7 +328,7 @@ def showText( type: str = "text", run: bool = True, geomKey: str | None = None, - minWidth: int = 500, + minWidth: int = 250, minHeight: int = 400, title: str = "Anki", copyBtn: bool = False, @@ -476,7 +476,7 @@ class GetTextDialog(QDialog): edit: QLineEdit | None = None, default: str = "", title: str = "Anki", - minWidth: int = 400, + minWidth: int = 200, ) -> None: QDialog.__init__(self, parent) self.setWindowTitle(title)