fix(ui): improve layout and alignment in compact detail page

Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
Boria138 committed 2026-05-11 11:39:49 +05:00
1 parent 61bceca3dd
commit 2af942e7c9
2 files changed
+6

No files matched your search

+4
View File
@@ -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)
+2
View File
@@ -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(