From 889a30e2e81ee6dd1614fcf01ac03d18713c6b43 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 30 Mar 2022 16:20:24 -0300 Subject: [PATCH] [view] improvement: no margin for wrapped subcomponents of FormComponent --- CHANGELOG.md | 1 + bauh/view/qt/components.py | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa3a6a27..514c86e3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). - UI - only displaying the "Installed" filter when installed packages are available on the table + - settings: margin between components reduced [#241](https://github.com/vinifmor/bauh/issues/241) ### Fixes - Arch diff --git a/bauh/view/qt/components.py b/bauh/view/qt/components.py index a3fbdd23..8170f559 100644 --- a/bauh/view/qt/components.py +++ b/bauh/view/qt/components.py @@ -865,6 +865,7 @@ class FormQt(QGroupBox): def _wrap(self, comp: QWidget, model: ViewComponent) -> QWidget: field_container = QWidget() field_container.setLayout(QHBoxLayout()) + field_container.layout().setContentsMargins(0, 0, 0, 0) if model.max_width > 0: field_container.setMaximumWidth(int(model.max_width))