Skip to content

Commit 9606cca

Browse files
author
Sergiu Miclea
committed
Add support for long error message in validation
If a very long error message is displayed when creating / editing an endpoint, it is wrapped within a scrollbar container.
1 parent 7e609b9 commit 9606cca

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/components/organisms/Endpoint/index.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ const ShowErrorButton = styled.span`
6969
cursor: pointer;
7070
`
7171
const StatusError = styled.div`
72-
margin-top: 32px;
72+
margin-top: 16px;
73+
max-height: 140px;
74+
overflow: auto;
7375
cursor: pointer;
7476
7577
&:hover > span {
@@ -302,7 +304,7 @@ class Endpoint extends React.Component<Props, State> {
302304
}
303305

304306
renderEndpointStatus() {
305-
let validation = EndpointStore.validation
307+
const validation = EndpointStore.validation
306308
if (!this.state.validating && !validation) {
307309
return null
308310
}

0 commit comments

Comments
 (0)