Répare le code d'intégration

fix #2813
pull/2817/head
Johan Girod 2023-09-21 15:34:42 +02:00
parent 1cdaeb1377
commit 52ade93997
2 changed files with 5 additions and 6 deletions

View File

@ -197,7 +197,9 @@ export default function RuleInput<Names extends string = DottedName>({
return (
<>
<OuiNonInput {...commonProps} />
<DefaultValue dottedName={dottedName as DottedName} />
{!hideDefaultValue && (
<DefaultValue dottedName={dottedName as DottedName} />
)}
</>
)
}

View File

@ -432,13 +432,10 @@ function IntegrationCode({
}
const StyledDiv = styled.div`
display: block;
right: 0;
top: 0;
position: absolute;
margin: 8px;
padding: 1rem;
background: ${({ theme }) => (theme.darkMode ? '#484848' : '#f8f8f8')};
overflow: auto;
border-radius: ${({ theme }) => theme.box.borderRadius};
line-height: 1.6em;
box-shadow:
0 1px 1px rgba(0, 0, 0, 0.05),