-
{title ?? StepTitle[type]}
+
+ {title ?? StepTitles[type]}
{config}
);
}
-const Configuration = styled('div')`
- display: flex;
- flex-direction: column;
- gap: 1rem;
+// NOTE: We intentionally avoid using flex or grid here
+// as it leads to weird text selection behavior in Safari
+// see https://github.com/getsentry/sentry/issues/79958
+
+const CONTENT_SPACING = space(2);
+
+const ContentWrapper = styled('div')`
+ margin-top: ${CONTENT_SPACING};
+`;
+
+const StepTitle = styled('h4')`
+ margin-bottom: 0 !important;
`;
-const Configurations = styled(Configuration)`
- margin-top: ${space(2)};
+const Configuration = styled('div')`
+ :not(:last-child) {
+ margin-bottom: ${CONTENT_SPACING};
+ }
`;
const Description = styled('div')`
@@ -294,18 +303,26 @@ const Description = styled('div')`
color: ${p => p.theme.pink400};
}
+ :not(:last-child) {
+ margin-bottom: ${CONTENT_SPACING};
+ }
+
&& > p,
&& > h4,
&& > h5,
&& > h6 {
- margin-bottom: ${space(1)};
+ &:not(:last-child) {
+ margin-bottom: ${CONTENT_SPACING};
+ }
}
`;
-const AdditionalInfo = styled(Description)``;
+const AdditionalInfo = styled(Description)`
+ margin-top: ${CONTENT_SPACING};
+`;
const GeneralAdditionalInfo = styled(Description)`
- margin-top: ${space(2)};
+ margin-top: ${CONTENT_SPACING};
`;
const OptionalConfigWrapper = styled('div')<{expanded: boolean}>`