From 342918773d91aa3db67cc6eb8b96488626fd9025 Mon Sep 17 00:00:00 2001 From: Zsolt Kovari Date: Fri, 4 Oct 2024 09:51:12 +0200 Subject: [PATCH] Make act buttons squishy by ignoring horizontal size policy #1375 --- src/main/python/plotlyst/view/widget/structure/timeline.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/python/plotlyst/view/widget/structure/timeline.py b/src/main/python/plotlyst/view/widget/structure/timeline.py index 7b4e8bca7..090052ed0 100644 --- a/src/main/python/plotlyst/view/widget/structure/timeline.py +++ b/src/main/python/plotlyst/view/widget/structure/timeline.py @@ -150,7 +150,8 @@ def __init__(self, structure: StoryStructure, act: int, parent=None, left: bool super().__init__(parent) self.structure = structure self.act = act - self.setSizePolicy(QSizePolicy.Policy.Expanding, QSizePolicy.Policy.Fixed) + self.setSizePolicy(QSizePolicy.Policy.Ignored, QSizePolicy.Policy.Fixed) + self.setMinimumWidth(10) if act == 0: self.setText('Structure') else: