diff --git a/VDS/Components/Buttons/Button/Button.swift b/VDS/Components/Buttons/Button/Button.swift index 72953bdb..d23106af 100644 --- a/VDS/Components/Buttons/Button/Button.swift +++ b/VDS/Components/Buttons/Button/Button.swift @@ -143,6 +143,11 @@ open class Button: ButtonBase, Useable { //-------------------------------------------------- // MARK: - Overrides //-------------------------------------------------- + open override var intrinsicContentSize: CGSize { + guard let width, width > 0 else { return super.intrinsicContentSize } + return CGSize(width: width > size.minimumWidth ? width : size.minimumWidth, height: size.height) + } + open override func updateView() { super.updateView() let bgColor = buttonBackgroundColorConfiguration.getColor(self)