Change AlertMessage design to be flat

Avoid shadows if not really needed.

Don't show in changelog
This commit is contained in:
Florian Rival
2022-04-24 14:23:08 +00:00
parent e9b464beba
commit d16f04f4a2
2 changed files with 4 additions and 4 deletions

View File

@@ -7,7 +7,7 @@ import PropertiesEditor from '../../PropertiesEditor';
import propertiesMapToSchema from '../../PropertiesEditor/PropertiesMapToSchema';
import EmptyMessage from '../../UI/EmptyMessage';
import { type EditorProps } from './EditorProps.flow';
import { Column, Line } from '../../UI/Grid';
import { Line } from '../../UI/Grid';
import { getExtraObjectsInformation } from '../../Hints';
import { getObjectTutorialIds } from '../../Utils/GDevelopServices/Tutorial';
import AlertMessage from '../../UI/AlertMessage';
@@ -62,13 +62,13 @@ const ObjectPropertiesEditor = (props: Props) => {
<React.Fragment>
{extraInformation ? (
<Line>
<Column noMargin>
<ColumnStackLayout noMargin>
{extraInformation.map(({ kind, message }, index) => (
<AlertMessage kind={kind} key={index}>
{i18n._(message)}
</AlertMessage>
))}
</Column>
</ColumnStackLayout>
</Line>
) : null}
<PropertiesEditor

View File

@@ -39,7 +39,7 @@ const AlertMessage = ({
const gdevelopTheme = React.useContext(GDevelopThemeContext);
return (
<Paper elevation={10} square>
<Paper variant="outlined">
<Column expand>
<ResponsiveLineStackLayout
alignItems="center"