Fix min schema ctm

This commit is contained in:
soupette 2019-08-23 16:07:34 +02:00
parent 22c58415a4
commit c1a5311e94
4 changed files with 14 additions and 6 deletions

View File

@ -7,7 +7,7 @@ const BlogPost = ({ error, isFirst, isLoading, title, content, link }) => {
return (
<>
<LoadingBar style={{ marginBottom: 13 }} />
<LoadingBar style={{ width: '40%', marginBottom: 30 }} />
<LoadingBar style={{ width: '40%', marginBottom: 31 }} />
</>
);
}

View File

@ -205,7 +205,10 @@ const LinkWrapper = styled.a`
> p {
margin: 0;
font-size: 16px;
font-size: 13px;
&:first-child {
font-size: 16px;
}
color: #919BAE;
text-overflow: ellipsis;
overflow: hidden;
@ -241,7 +244,7 @@ const SocialLinkWrapper = styled.div`
}
span {
margin-left: 11px;
width: calc(100% - 40px);
width: calc(100% - 36px);
}
&:hover {
text-decoration: none;

View File

@ -196,7 +196,7 @@ const HomePage = ({ global: { plugins }, history: { push } }) => {
</div>
<div className="col-4">
<Block>
<Block style={{ paddingRight: 30 }}>
<FormattedMessage id="HomePage.community">
{msg => <h2>{msg}</h2>}
</FormattedMessage>
@ -216,7 +216,12 @@ const HomePage = ({ global: { plugins }, history: { push } }) => {
</FormattedMessage>
<div
className="row social-wrapper"
style={{ display: 'flex', margin: 0, marginTop: 43 }}
style={{
display: 'flex',
margin: 0,
marginTop: 43,
marginLeft: -15,
}}
>
{SOCIAL_LINKS.map((value, key) => (
<SocialLink key={key} {...value} />

View File

@ -133,7 +133,7 @@ const createYupSchemaAttribute = (type, validations) => {
if (type === 'email') {
schema = schema.email(errorsTrads.email);
}
if (type === 'number') {
if (['number', 'integer', 'biginteger', 'float', 'decimal'].includes(type)) {
schema = yup
.number()
.transform(cv => (isNaN(cv) ? undefined : cv))