mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Fix wrong margins for dense design of sub card (#7303)
Do not show in changelog
This commit is contained in:
@@ -55,7 +55,7 @@ export const MaxProjectCountAlertMessage = ({ margin }: Props) => {
|
||||
}
|
||||
hideButton={!canMaximumCountBeIncreased}
|
||||
>
|
||||
<Line noMargin={margin === 'dense'}>
|
||||
<Line>
|
||||
<Column noMargin expand>
|
||||
<Text
|
||||
size={margin === 'dense' ? 'sub-title' : 'block-title'}
|
||||
|
@@ -9,6 +9,7 @@ import {
|
||||
fakeStartupAuthenticatedUser,
|
||||
} from '../../../../fixtures/GDevelopServicesTestData';
|
||||
import AuthenticatedUserContext from '../../../../Profile/AuthenticatedUserContext';
|
||||
import FixedWidthFlexContainer from '../../../FixedWidthFlexContainer';
|
||||
|
||||
export default {
|
||||
title: 'HomePage/CreateSection/MaxProjectCountAlertMessage',
|
||||
@@ -47,3 +48,11 @@ export const DenseMargins = () => (
|
||||
<MaxProjectCountAlertMessage margin="dense" />
|
||||
</AuthenticatedUserContext.Provider>
|
||||
);
|
||||
|
||||
export const DenseMarginsOnSmallDialog = () => (
|
||||
<AuthenticatedUserContext.Provider value={fakeSilverAuthenticatedUser}>
|
||||
<FixedWidthFlexContainer width={500}>
|
||||
<MaxProjectCountAlertMessage margin="dense" />
|
||||
</FixedWidthFlexContainer>
|
||||
</AuthenticatedUserContext.Provider>
|
||||
);
|
||||
|
Reference in New Issue
Block a user