{growlImage &&
}
-
+
{headerText}
-
+
{bodyText}
{buttonLink && (
diff --git a/packages/commonwealth/client/scripts/views/components/component_kit/cw_growl.tsx b/packages/commonwealth/client/scripts/views/components/component_kit/cw_growl.tsx
index 49e71bf1d6f..b11b98b786c 100644
--- a/packages/commonwealth/client/scripts/views/components/component_kit/cw_growl.tsx
+++ b/packages/commonwealth/client/scripts/views/components/component_kit/cw_growl.tsx
@@ -6,7 +6,7 @@ import { CWCard } from './cw_card';
import { getClasses } from './helpers';
import { ComponentType } from './types';
-type GrowlPosition = 'bottom-left' | 'bottom-right';
+type GrowlPosition = 'bottom-left' | 'bottom-right' | 'center';
type GrowlAttrs = {
className?: string;
diff --git a/packages/commonwealth/client/scripts/views/pages/discussions/DiscussionsPage.tsx b/packages/commonwealth/client/scripts/views/pages/discussions/DiscussionsPage.tsx
index 22217596749..ff9eb028d88 100644
--- a/packages/commonwealth/client/scripts/views/pages/discussions/DiscussionsPage.tsx
+++ b/packages/commonwealth/client/scripts/views/pages/discussions/DiscussionsPage.tsx
@@ -403,6 +403,7 @@ const DiscussionsPage = ({ topicName }: DiscussionsPageProps) => {
bodyText="'Overview' page has been merged with the 'All' page"
buttonText="test"
growlType="discussion"
+ blackCloseButton
/>
>
);
diff --git a/packages/commonwealth/client/styles/components/component_kit/cw_growl.scss b/packages/commonwealth/client/styles/components/component_kit/cw_growl.scss
index 6f652aabcce..abecbd7c889 100644
--- a/packages/commonwealth/client/styles/components/component_kit/cw_growl.scss
+++ b/packages/commonwealth/client/styles/components/component_kit/cw_growl.scss
@@ -8,9 +8,9 @@ $growl-outside-right-padding: 32px; // accounts for scrollbar width
bottom: $growl-outside-bottom-padding;
display: flex;
position: fixed;
-
+ max-width: 400px;
@include smallInclusive {
- max-width: 400px;
+ max-width: 320px;
max-height: 100%;
}
@@ -21,6 +21,13 @@ $growl-outside-right-padding: 32px; // accounts for scrollbar width
&.bottom-right {
right: $growl-outside-right-padding;
}
+ &.center {
+ top: 50%;
+ left: 48%;
+ transform: translate(-50%, -50%);
+ bottom: auto;
+ right: auto;
+ }
.growl-card.Card {
padding: 0;