Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import styled from '@emotion/styled';

import TextareaField from 'sentry/components/forms/fields/textareaField';
import {Container} from 'sentry/components/workflowEngine/ui/container';
import Section from 'sentry/components/workflowEngine/ui/section';
Expand All @@ -10,7 +12,7 @@ export function DescribeSection() {
title={t('Description')}
description={t('Additional context about this monitor for other team members.')}
>
<TextareaField
<MinHeightTextarea
name="description"
stacked
inline={false}
Expand All @@ -19,8 +21,17 @@ export function DescribeSection() {
'Example monitor description\n\nTo debug follow these steps:\n1. \u2026\n2. \u2026\n3. \u2026'
)}
rows={6}
autosize
/>
</Section>
</Container>
);
}

// Min height helps prevent resize after placeholder is replaced with user input
const MinHeightTextarea = styled(TextareaField)`
padding: 0;
textarea {
min-height: 140px;
}
`;
Loading