fix: fixed Sensors align in combined view and added localizedString to PortalHeader (#1879)

* [fix] fix Sensors align

fix the align in Sensors combined view

* [feat] add localizedString to header
This commit is contained in:
ShigemoriHakura
2024-04-07 18:43:36 +08:00
committed by GitHub
parent 4c625c8dbb
commit d40c2e231f
2 changed files with 4 additions and 3 deletions

View File

@@ -35,12 +35,13 @@ public class Portal: NSStackView, Portal_p {
self.orientation = .vertical
self.distribution = .fillEqually
self.spacing = Constants.Popup.spacing*2
self.widthAnchor.constraint(equalToConstant: Constants.Popup.width).isActive = true
self.spacing = Constants.Popup.spacing
self.edgeInsets = NSEdgeInsets(
top: Constants.Popup.spacing*2,
left: Constants.Popup.spacing*2,
bottom: Constants.Popup.spacing*2,
right: Constants.Popup.spacing*2
right: Constants.Popup.spacing
)
self.container.stackView.spacing = 0