mirror of
https://github.com/strapi/strapi.git
synced 2025-11-06 21:29:24 +00:00
feedback review: spacing and translation
This commit is contained in:
parent
6c516f194f
commit
7168f929b3
@ -2,7 +2,6 @@ import React, { useState, useEffect } from 'react';
|
|||||||
import { useIntl } from 'react-intl';
|
import { useIntl } from 'react-intl';
|
||||||
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
import { Grid, GridItem } from '@strapi/design-system/Grid';
|
||||||
import { Box } from '@strapi/design-system/Box';
|
import { Box } from '@strapi/design-system/Box';
|
||||||
import { Stack } from '@strapi/design-system/Stack';
|
|
||||||
import { Typography } from '@strapi/design-system/Typography';
|
import { Typography } from '@strapi/design-system/Typography';
|
||||||
import LogoInput from '../LogoInput';
|
import LogoInput from '../LogoInput';
|
||||||
import { useConfigurations } from '../../../../../../hooks';
|
import { useConfigurations } from '../../../../../../hooks';
|
||||||
@ -37,19 +36,17 @@ const Form = () => {
|
|||||||
paddingRight={6}
|
paddingRight={6}
|
||||||
paddingLeft={6}
|
paddingLeft={6}
|
||||||
>
|
>
|
||||||
<Stack spacing={5}>
|
|
||||||
<Typography variant="delta" as="h3">
|
<Typography variant="delta" as="h3">
|
||||||
{formatMessage({
|
{formatMessage({
|
||||||
id: 'Settings.application.customization',
|
id: 'Settings.application.customization',
|
||||||
defaultMessage: 'Customization',
|
defaultMessage: 'Customization',
|
||||||
})}
|
})}
|
||||||
</Typography>
|
</Typography>
|
||||||
<Grid>
|
<Grid paddingTop={5}>
|
||||||
<GridItem col={6} s={12}>
|
<GridItem col={6} s={12}>
|
||||||
<LogoInput customLogo={customMenuLogo} defaultLogo={menu.default} />
|
<LogoInput customLogo={customMenuLogo} defaultLogo={menu.default} />
|
||||||
</GridItem>
|
</GridItem>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Stack>
|
|
||||||
</Box>
|
</Box>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -35,7 +35,12 @@ const LogoInput = ({ customLogo, defaultLogo }) => {
|
|||||||
</CarouselActions>
|
</CarouselActions>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<CarouselSlide label="logo slide">
|
<CarouselSlide
|
||||||
|
label={formatMessage({
|
||||||
|
id: 'Settings.application.customization.carousel-slide.label',
|
||||||
|
defaultMessage: 'Logo slide',
|
||||||
|
})}
|
||||||
|
>
|
||||||
<Box
|
<Box
|
||||||
maxHeight="40%"
|
maxHeight="40%"
|
||||||
maxWidth="40%"
|
maxWidth="40%"
|
||||||
|
|||||||
@ -54,12 +54,12 @@ describe('Application page', () => {
|
|||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c35 {
|
.c36 {
|
||||||
max-width: 40%;
|
max-width: 40%;
|
||||||
max-height: 40%;
|
max-height: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c38 {
|
.c39 {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
@ -73,21 +73,21 @@ describe('Application page', () => {
|
|||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c38 svg {
|
.c39 svg {
|
||||||
height: 12px;
|
height: 12px;
|
||||||
width: 12px;
|
width: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c38 svg > g,
|
.c39 svg > g,
|
||||||
.c38 svg path {
|
.c39 svg path {
|
||||||
fill: #ffffff;
|
fill: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c38[aria-disabled='true'] {
|
.c39[aria-disabled='true'] {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c38:after {
|
.c39:after {
|
||||||
-webkit-transition-property: all;
|
-webkit-transition-property: all;
|
||||||
transition-property: all;
|
transition-property: all;
|
||||||
-webkit-transition-duration: 0.2s;
|
-webkit-transition-duration: 0.2s;
|
||||||
@ -102,11 +102,11 @@ describe('Application page', () => {
|
|||||||
border: 2px solid transparent;
|
border: 2px solid transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c38:focus-visible {
|
.c39:focus-visible {
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c38:focus-visible:after {
|
.c39:focus-visible:after {
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@ -117,7 +117,7 @@ describe('Application page', () => {
|
|||||||
border: 2px solid #4945ff;
|
border: 2px solid #4945ff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c39 {
|
.c40 {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
@ -134,26 +134,26 @@ describe('Application page', () => {
|
|||||||
width: 2rem;
|
width: 2rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c39 svg > g,
|
.c40 svg > g,
|
||||||
.c39 svg path {
|
.c40 svg path {
|
||||||
fill: #8e8ea9;
|
fill: #8e8ea9;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c39:hover svg > g,
|
.c40:hover svg > g,
|
||||||
.c39:hover svg path {
|
.c40:hover svg path {
|
||||||
fill: #666687;
|
fill: #666687;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c39:active svg > g,
|
.c40:active svg > g,
|
||||||
.c39:active svg path {
|
.c40:active svg path {
|
||||||
fill: #a5a5ba;
|
fill: #a5a5ba;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c39[aria-disabled='true'] {
|
.c40[aria-disabled='true'] {
|
||||||
background-color: #eaeaef;
|
background-color: #eaeaef;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c39[aria-disabled='true'] svg path {
|
.c40[aria-disabled='true'] svg path {
|
||||||
fill: #666687;
|
fill: #666687;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -295,6 +295,10 @@ describe('Application page', () => {
|
|||||||
padding-top: 4px;
|
padding-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.c24 {
|
||||||
|
padding-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
.c15 {
|
.c15 {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(12,1fr);
|
grid-template-columns: repeat(12,1fr);
|
||||||
@ -376,7 +380,7 @@ describe('Application page', () => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c27 {
|
.c28 {
|
||||||
background: #f6f6f9;
|
background: #f6f6f9;
|
||||||
padding: 8px;
|
padding: 8px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
@ -384,40 +388,40 @@ describe('Application page', () => {
|
|||||||
border: 1px solid #dcdce4;
|
border: 1px solid #dcdce4;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c28 {
|
.c29 {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c30 {
|
.c31 {
|
||||||
padding-right: 8px;
|
padding-right: 8px;
|
||||||
padding-left: 8px;
|
padding-left: 8px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c32 {
|
.c33 {
|
||||||
height: 124px;
|
height: 124px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c36 {
|
.c37 {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 4px;
|
bottom: 4px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c40 {
|
.c41 {
|
||||||
padding-top: 8px;
|
padding-top: 8px;
|
||||||
padding-right: 16px;
|
padding-right: 16px;
|
||||||
padding-left: 16px;
|
padding-left: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c25 {
|
.c26 {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
color: #32324d;
|
color: #32324d;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
line-height: 1.33;
|
line-height: 1.33;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c41 {
|
.c42 {
|
||||||
color: #666687;
|
color: #666687;
|
||||||
display: block;
|
display: block;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
@ -427,13 +431,13 @@ describe('Application page', () => {
|
|||||||
line-height: 1.33;
|
line-height: 1.33;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c42 {
|
.c43 {
|
||||||
color: #666687;
|
color: #666687;
|
||||||
font-size: 0.75rem;
|
font-size: 0.75rem;
|
||||||
line-height: 1.33;
|
line-height: 1.33;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c26 {
|
.c27 {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
@ -447,7 +451,7 @@ describe('Application page', () => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c33 {
|
.c34 {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
@ -465,17 +469,17 @@ describe('Application page', () => {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c29 {
|
.c30 {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: auto 1fr auto;
|
grid-template-columns: auto 1fr auto;
|
||||||
grid-template-areas: 'startAction slides endAction';
|
grid-template-areas: 'startAction slides endAction';
|
||||||
}
|
}
|
||||||
|
|
||||||
.c31 {
|
.c32 {
|
||||||
grid-area: slides;
|
grid-area: slides;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c24 {
|
.c25 {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
@ -485,25 +489,25 @@ describe('Application page', () => {
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c24 > * {
|
.c25 > * {
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c24 > * + * {
|
.c25 > * + * {
|
||||||
margin-top: 4px;
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c37 > * {
|
.c38 > * {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c37 > * + * {
|
.c38 > * + * {
|
||||||
margin-left: 4px;
|
margin-left: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.c34 {
|
.c35 {
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
display: -webkit-flex;
|
display: -webkit-flex;
|
||||||
display: -ms-flexbox;
|
display: -ms-flexbox;
|
||||||
@ -745,10 +749,6 @@ describe('Application page', () => {
|
|||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
class="c11"
|
class="c11"
|
||||||
>
|
|
||||||
<div
|
|
||||||
class="c12"
|
|
||||||
spacing="5"
|
|
||||||
>
|
>
|
||||||
<h3
|
<h3
|
||||||
class="c13"
|
class="c13"
|
||||||
@ -756,7 +756,7 @@ describe('Application page', () => {
|
|||||||
Customization
|
Customization
|
||||||
</h3>
|
</h3>
|
||||||
<div
|
<div
|
||||||
class="c15"
|
class="c24 c15"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="c16"
|
class="c16"
|
||||||
@ -766,15 +766,15 @@ describe('Application page', () => {
|
|||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
<div
|
<div
|
||||||
class="c24"
|
class="c25"
|
||||||
spacing="1"
|
spacing="1"
|
||||||
>
|
>
|
||||||
<label
|
<label
|
||||||
class="c25"
|
class="c26"
|
||||||
for="carouselinput-1"
|
for="carouselinput-1"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="c26"
|
class="c27"
|
||||||
>
|
>
|
||||||
Logo
|
Logo
|
||||||
</div>
|
</div>
|
||||||
@ -784,34 +784,34 @@ describe('Application page', () => {
|
|||||||
id="carouselinput-1"
|
id="carouselinput-1"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="c27"
|
class="c28"
|
||||||
>
|
>
|
||||||
<section
|
<section
|
||||||
aria-label="Logo"
|
aria-label="Logo"
|
||||||
aria-roledescription="carousel"
|
aria-roledescription="carousel"
|
||||||
class="c28 c29"
|
class="c29 c30"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-live="polite"
|
aria-live="polite"
|
||||||
class="c30 c31"
|
class="c31 c32"
|
||||||
width="100%"
|
width="100%"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
aria-label="logo slide"
|
aria-label="Logo slide"
|
||||||
aria-roledescription="slide"
|
aria-roledescription="slide"
|
||||||
class="c32 c33 c34"
|
class="c33 c34 c35"
|
||||||
height="124px"
|
height="124px"
|
||||||
role="group"
|
role="group"
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
alt="Logo"
|
alt="Logo"
|
||||||
class="c35"
|
class="c36"
|
||||||
src="IMAGE_MOCK"
|
src="IMAGE_MOCK"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="c36 c33 c37"
|
class="c37 c34 c38"
|
||||||
spacing="1"
|
spacing="1"
|
||||||
width="100%"
|
width="100%"
|
||||||
>
|
>
|
||||||
@ -819,7 +819,7 @@ describe('Application page', () => {
|
|||||||
<button
|
<button
|
||||||
aria-disabled="false"
|
aria-disabled="false"
|
||||||
aria-labelledby="tooltip-1"
|
aria-labelledby="tooltip-1"
|
||||||
class="c38 c39"
|
class="c39 c40"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
@ -840,16 +840,16 @@ describe('Application page', () => {
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
<div
|
<div
|
||||||
class="c40"
|
class="c41"
|
||||||
>
|
>
|
||||||
<span>
|
<span>
|
||||||
<div
|
<div
|
||||||
aria-labelledby="tooltip-2"
|
aria-labelledby="tooltip-2"
|
||||||
class="c33"
|
class="c34"
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="c41"
|
class="c42"
|
||||||
>
|
>
|
||||||
cat-logo.png
|
cat-logo.png
|
||||||
</span>
|
</span>
|
||||||
@ -859,7 +859,7 @@ describe('Application page', () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p
|
<p
|
||||||
class="c42"
|
class="c43"
|
||||||
id="carouselinput-1-hint"
|
id="carouselinput-1-hint"
|
||||||
>
|
>
|
||||||
Change the admin panel logo (Max dimension: 750*750, Max file size: TBC)
|
Change the admin panel logo (Max dimension: 750*750, Max file size: TBC)
|
||||||
@ -873,7 +873,6 @@ describe('Application page', () => {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
</main>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -102,6 +102,7 @@
|
|||||||
"Settings.application.customization": "Customization",
|
"Settings.application.customization": "Customization",
|
||||||
"Settings.application.customization.carousel.title": "Logo",
|
"Settings.application.customization.carousel.title": "Logo",
|
||||||
"Settings.application.customization.carousel.change-action": "Change logo",
|
"Settings.application.customization.carousel.change-action": "Change logo",
|
||||||
|
"Settings.application.customization.carousel-slide.label": "Logo slide",
|
||||||
"Settings.error": "Error",
|
"Settings.error": "Error",
|
||||||
"Settings.global": "Global Settings",
|
"Settings.global": "Global Settings",
|
||||||
"Settings.permissions": "Administration panel",
|
"Settings.permissions": "Administration panel",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user