diff --git a/apps/common/mobile/resources/less/common-ios.less b/apps/common/mobile/resources/less/common-ios.less index 96836464b..c81391f16 100644 --- a/apps/common/mobile/resources/less/common-ios.less +++ b/apps/common/mobile/resources/less/common-ios.less @@ -1,4 +1,6 @@ +@white: #ffffff; + .device-ios { .popover__titled { .popover-inner { @@ -49,4 +51,48 @@ } } } + + // Bullets and numbers + .bullets, + .numbers { + .page-content { + background: @white; + } + + .row { + justify-content: space-around; + } + + ul { + margin-top: 10px; + } + + li { + width: 70px; + height: 70px; + margin-right: 1px; + border: 1px solid #c4c4c4; + html.pixel-ratio-2 & { + border: 0.5px solid #c4c4c4; + } + html.pixel-ratio-3 & { + border: 0.33px solid #c4c4c4; + } + + .thumb { + width: 100%; + height: 100%; + background-color: @white; + background-size: cover; + + label { + width: 100%; + text-align: center; + position: absolute; + top: 34%; + } + } + } + } + } diff --git a/apps/documenteditor/mobile/src/components/edit/EditText.jsx b/apps/documenteditor/mobile/src/components/edit/EditText.jsx index 425aa3864..6d119b0a0 100644 --- a/apps/documenteditor/mobile/src/components/edit/EditText.jsx +++ b/apps/documenteditor/mobile/src/components/edit/EditText.jsx @@ -98,33 +98,26 @@ const PageAdditionalFormatting = props => { ) }; -import bulletImg1 from '../../../resources/img/bullets/bullet-01.png'; -import bulletImg2 from '../../../resources/img/bullets/bullet-02.png'; -import bulletImg3 from '../../../resources/img/bullets/bullet-03.png'; -import bulletImg4 from '../../../resources/img/bullets/bullet-04.png'; -import bulletImg5 from '../../../resources/img/bullets/bullet-05.png'; -import bulletImg6 from '../../../resources/img/bullets/bullet-06.png'; -import bulletImg7 from '../../../resources/img/bullets/bullet-07.png'; const PageBullets = props => { const { t } = useTranslation(); const bulletArrays = [ [ {type: -1, thumb: ''}, - {type: 1, thumb: bulletImg1}, - {type: 2, thumb: bulletImg2}, - {type: 3, thumb: bulletImg3} + {type: 1, thumb: 'bullet-01.png'}, + {type: 2, thumb: 'bullet-02.png'}, + {type: 3, thumb: 'bullet-03.png'} ], [ - {type: 4, thumb: bulletImg4}, - {type: 5, thumb: bulletImg5}, - {type: 6, thumb: bulletImg6}, - {type: 7, thumb: bulletImg7} + {type: 4, thumb: 'bullet-04.png'}, + {type: 5, thumb: 'bullet-05.png'}, + {type: 6, thumb: 'bullet-06.png'}, + {type: 7, thumb: 'bullet-07.png'} ] ]; const storeTextSettings = props.storeTextSettings; const typeBullets = storeTextSettings.typeBullets; return( - + {bulletArrays.map((bullets, index) => (
    @@ -134,7 +127,7 @@ const PageBullets = props => {
    : -
    +
    } ))} @@ -144,33 +137,26 @@ const PageBullets = props => { ) }; -import numberImg1 from '../../../resources/img/numbers/number-01.png'; -import numberImg2 from '../../../resources/img/numbers/number-02.png'; -import numberImg3 from '../../../resources/img/numbers/number-03.png'; -import numberImg4 from '../../../resources/img/numbers/number-04.png'; -import numberImg5 from '../../../resources/img/numbers/number-05.png'; -import numberImg6 from '../../../resources/img/numbers/number-06.png'; -import numberImg7 from '../../../resources/img/numbers/number-07.png'; const PageNumbers = props => { const { t } = useTranslation(); const numberArrays = [ [ {type: -1, thumb: ''}, - {type: 4, thumb: numberImg1}, - {type: 5, thumb: numberImg2}, - {type: 6, thumb: numberImg3} + {type: 4, thumb: 'number-01.png'}, + {type: 5, thumb: 'number-02.png'}, + {type: 6, thumb: 'number-03.png'} ], [ - {type: 1, thumb: numberImg4}, - {type: 2, thumb: numberImg5}, - {type: 3, thumb: numberImg6}, - {type: 7, thumb: numberImg7} + {type: 1, thumb: 'number-04.png'}, + {type: 2, thumb: 'number-05.png'}, + {type: 3, thumb: 'number-06.png'}, + {type: 7, thumb: 'number-07.png'} ] ]; const storeTextSettings = props.storeTextSettings; const typeNumbers = storeTextSettings.typeNumbers; return( - + {numberArrays.map((numbers, index) => (
      @@ -180,7 +166,7 @@ const PageNumbers = props => {
      : -
      +
      } ))}