Skip to content

The open alternative to Salesforce, designed for AI.

Keep fullWidth buttons at full width while loading (#23536)

Félix Malfaitb643ddf11935
diff --git a/packages/twenty-ui/src/input/Button/Button.module.scss b/packages/twenty-ui/src/input/Button/Button.module.scss
index 2b63dedeb75..8bae4003af5 100644
--- a/packages/twenty-ui/src/input/Button/Button.module.scss
+++ b/packages/twenty-ui/src/input/Button/Button.module.scss
@@ -78,8 +78,10 @@ $gray-scale-light-gray1: color(display-p3 1 1 1);
}
// Applied to both the wrapper and the button; declared after them so the
-// width wins the cascade at equal specificity.
+// sizing wins the cascade at equal specificity, including over
+// .wrapperLoading's max-width shrink which only applies to auto-width buttons.
.fullWidth {
+ max-width: 100%;
width: 100%;
}