reduce minimum width

This commit is contained in:
Daniel Langbein 2024-11-30 12:36:24 +01:00
parent d1e42e5379
commit 09d9ae364f
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
10 changed files with 12 additions and 12 deletions

View File

@ -202,7 +202,7 @@ def show(mw: aqt.AnkiQt) -> QDialog:
)
abouttext += f"<p>{tr.about_if_you_have_contributed_and_are()}"
abouttext += f"<p>{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=[])

View File

@ -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)

View File

@ -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")

View File

@ -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)

View File

@ -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)

View File

@ -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,

View File

@ -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")

View File

@ -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)

View File

@ -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():

View File

@ -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)