mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 02:24:16 +02:00
[view] improvement: no margin for wrapped subcomponents of FormComponent
This commit is contained in:
@@ -34,6 +34,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|||||||
|
|
||||||
- UI
|
- UI
|
||||||
- only displaying the "Installed" filter when installed packages are available on the table
|
- 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
|
### Fixes
|
||||||
- Arch
|
- Arch
|
||||||
|
|||||||
@@ -865,6 +865,7 @@ class FormQt(QGroupBox):
|
|||||||
def _wrap(self, comp: QWidget, model: ViewComponent) -> QWidget:
|
def _wrap(self, comp: QWidget, model: ViewComponent) -> QWidget:
|
||||||
field_container = QWidget()
|
field_container = QWidget()
|
||||||
field_container.setLayout(QHBoxLayout())
|
field_container.setLayout(QHBoxLayout())
|
||||||
|
field_container.layout().setContentsMargins(0, 0, 0, 0)
|
||||||
|
|
||||||
if model.max_width > 0:
|
if model.max_width > 0:
|
||||||
field_container.setMaximumWidth(int(model.max_width))
|
field_container.setMaximumWidth(int(model.max_width))
|
||||||
|
|||||||
Reference in New Issue
Block a user