[view] improvement: no margin for wrapped subcomponents of FormComponent

This commit is contained in:
Vinicius Moreira
2022-03-30 16:20:24 -03:00
parent 6d23916177
commit 889a30e2e8
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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))