mirror of
https://github.com/strapi/strapi.git
synced 2025-10-29 08:59:34 +00:00
Fix min schema ctm
This commit is contained in:
parent
22c58415a4
commit
c1a5311e94
@ -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 }} />
|
||||
</>
|
||||
);
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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} />
|
||||
|
||||
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user