mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-30 17:37:26 +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 ( |     return ( | ||||||
|       <> |       <> | ||||||
|         <LoadingBar style={{ marginBottom: 13 }} /> |         <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 { |   > p { | ||||||
|     margin: 0; |     margin: 0; | ||||||
|     font-size: 16px; |     font-size: 13px; | ||||||
|  |     &:first-child { | ||||||
|  |       font-size: 16px; | ||||||
|  |     } | ||||||
|     color: #919BAE; |     color: #919BAE; | ||||||
|     text-overflow: ellipsis; |     text-overflow: ellipsis; | ||||||
|     overflow: hidden; |     overflow: hidden; | ||||||
| @ -241,7 +244,7 @@ const SocialLinkWrapper = styled.div` | |||||||
|     } |     } | ||||||
|     span { |     span { | ||||||
|       margin-left: 11px; |       margin-left: 11px; | ||||||
|       width: calc(100% - 40px); |       width: calc(100% - 36px); | ||||||
|     } |     } | ||||||
|     &:hover { |     &:hover { | ||||||
|       text-decoration: none; |       text-decoration: none; | ||||||
|  | |||||||
| @ -196,7 +196,7 @@ const HomePage = ({ global: { plugins }, history: { push } }) => { | |||||||
|           </div> |           </div> | ||||||
| 
 | 
 | ||||||
|           <div className="col-4"> |           <div className="col-4"> | ||||||
|             <Block> |             <Block style={{ paddingRight: 30 }}> | ||||||
|               <FormattedMessage id="HomePage.community"> |               <FormattedMessage id="HomePage.community"> | ||||||
|                 {msg => <h2>{msg}</h2>} |                 {msg => <h2>{msg}</h2>} | ||||||
|               </FormattedMessage> |               </FormattedMessage> | ||||||
| @ -216,7 +216,12 @@ const HomePage = ({ global: { plugins }, history: { push } }) => { | |||||||
|               </FormattedMessage> |               </FormattedMessage> | ||||||
|               <div |               <div | ||||||
|                 className="row social-wrapper" |                 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) => ( |                 {SOCIAL_LINKS.map((value, key) => ( | ||||||
|                   <SocialLink key={key} {...value} /> |                   <SocialLink key={key} {...value} /> | ||||||
|  | |||||||
| @ -133,7 +133,7 @@ const createYupSchemaAttribute = (type, validations) => { | |||||||
|   if (type === 'email') { |   if (type === 'email') { | ||||||
|     schema = schema.email(errorsTrads.email); |     schema = schema.email(errorsTrads.email); | ||||||
|   } |   } | ||||||
|   if (type === 'number') { |   if (['number', 'integer', 'biginteger', 'float', 'decimal'].includes(type)) { | ||||||
|     schema = yup |     schema = yup | ||||||
|       .number() |       .number() | ||||||
|       .transform(cv => (isNaN(cv) ? undefined : cv)) |       .transform(cv => (isNaN(cv) ? undefined : cv)) | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 soupette
						soupette