diff --git a/portprotonqt/detail_pages/__init__.py b/portprotonqt/detail_pages/__init__.py index 24ab0ac63..e1c211c84 100644 --- a/portprotonqt/detail_pages/__init__.py +++ b/portprotonqt/detail_pages/__init__.py @@ -12,6 +12,7 @@ from PySide6.QtWidgets import ( QMessageBox, QScrollArea, QBoxLayout, + QSizePolicy, ) from PySide6.QtCore import Qt, QUrl, QTimer from PySide6.QtGui import QDesktopServices @@ -276,6 +277,9 @@ class DetailPageManager: playtime_value = QLabel(formatted_playtime) playtime_value.setStyleSheet(self.main_window.theme.PLAY_TIME_VALUE_STYLE) + for widget in (last_launch_title, last_launch_value, playtime_title, playtime_value): + widget.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed) + first_row.addWidget(last_launch_title) first_row.addWidget(last_launch_value) first_row.addSpacing(30) diff --git a/portprotonqt/detail_pages/widgets.py b/portprotonqt/detail_pages/widgets.py index 7e3f234f3..96b3ea58d 100644 --- a/portprotonqt/detail_pages/widgets.py +++ b/portprotonqt/detail_pages/widgets.py @@ -200,9 +200,11 @@ def create_compact_detail_header( ) ) header_layout.addWidget(cover_frame, alignment=Qt.AlignmentFlag.AlignCenter) + header_widget.setFixedHeight(cover_frame.height()) title_frame = QFrame(header_widget) title_frame.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Expanding) + title_frame.setMaximumHeight(cover_frame.height()) title_frame.setStyleSheet(theme.COMPACT_DETAILS_WIDGET_STYLE) title_layout = QVBoxLayout(title_frame) title_layout.setContentsMargins(