Skip to content

The only downloader you need. 下载器的集大成者。

fix(Setting): 修复可折叠设置卡展开折叠时抖动

XiaoYouChR47de4ee30bf1
diff --git a/app/view/components/setting_card_group.py b/app/view/components/setting_card_group.py
index 28dd189d..0131d589 100644
--- a/app/view/components/setting_card_group.py
+++ b/app/view/components/setting_card_group.py
@@ -62,6 +62,8 @@ class CollapsibleSettingCard(QWidget):
self.view.setObjectName("view")
self.vBoxLayout.setContentsMargins(0, 0, 0, 0)
self.vBoxLayout.setSpacing(0)
+ self.vBoxLayout.setAlignment(Qt.AlignmentFlag.AlignTop)
+ self.vBoxLayout.setSizeConstraint(QLayout.SizeConstraint.SetMinimumSize)
self.vBoxLayout.addWidget(self.card)
self.vBoxLayout.addWidget(self.view)
self.viewLayout.setContentsMargins(0, 0, 0, 0)