diff --git a/Kit/module/portal.swift b/Kit/module/portal.swift index 06f76690..da30a193 100644 --- a/Kit/module/portal.swift +++ b/Kit/module/portal.swift @@ -78,7 +78,7 @@ public class PortalHeader: NSStackView { title.canDrawSubviewsIntoLayer = true title.alignment = .center title.font = NSFont.systemFont(ofSize: 12, weight: .regular) - title.stringValue = name + title.stringValue = localizedString(name) let settings = NSButton() settings.heightAnchor.constraint(equalToConstant: 18).isActive = true diff --git a/Modules/Sensors/portal.swift b/Modules/Sensors/portal.swift index 9927b6a4..d09067c0 100644 --- a/Modules/Sensors/portal.swift +++ b/Modules/Sensors/portal.swift @@ -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