Fix text clipping in modal overlay and set minimum window size
This commit is contained in:
@@ -50,7 +50,8 @@
|
||||
<item>
|
||||
<widget class="QWidget" name="contentWidget" native="true">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">#contentWidget { border-radius: 6px; }</string>
|
||||
<string notr="true">#contentWidget { border-radius: 6px; }
|
||||
QFormLayout QLabel { min-height: 20px; }</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayoutSub" stretch="1,0,0,0">
|
||||
<property name="spacing">
|
||||
@@ -193,7 +194,7 @@
|
||||
<number>16</number>
|
||||
</property>
|
||||
<property name="verticalSpacing">
|
||||
<number>10</number>
|
||||
<number>12</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>0</number>
|
||||
@@ -325,9 +326,18 @@
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLabel" name="expectedTimeLeft">
|
||||
<property name="sizePolicy">
|
||||
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
|
||||
<horstretch>0</horstretch>
|
||||
<verstretch>0</verstretch>
|
||||
</sizepolicy>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>calculating...</string>
|
||||
</property>
|
||||
<property name="wordWrap">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
||||
@@ -109,6 +109,9 @@ PalladiumGUI::PalladiumGUI(interfaces::Node& node, const PlatformStyle *_platfor
|
||||
move(QGuiApplication::primaryScreen()->availableGeometry().center() - frameGeometry().center());
|
||||
}
|
||||
|
||||
// Set minimum window size to prevent UI breaking (must be after restoreGeometry)
|
||||
setMinimumSize(850, 550);
|
||||
|
||||
#ifdef ENABLE_WALLET
|
||||
enableWallet = WalletModel::isWalletEnabled();
|
||||
#endif // ENABLE_WALLET
|
||||
|
||||
Reference in New Issue
Block a user