[DE PE] Fix Bug 47943
This commit is contained in:
parent
98875a124b
commit
dc50581e7c
|
@ -119,13 +119,13 @@ const PageAdditionalFormatting = props => {
|
||||||
</List>
|
</List>
|
||||||
<List>
|
<List>
|
||||||
<ListItem title={t('Edit.textLetterSpacing')}>
|
<ListItem title={t('Edit.textLetterSpacing')}>
|
||||||
{!isAndroid && <div slot='after-start'>{letterSpacing + ' ' + Common.Utils.Metric.getCurrentMetricName()}</div>}
|
{!isAndroid && <div slot='after-start'>{(Number.isInteger(letterSpacing) ? letterSpacing : letterSpacing.toFixed(2)) + ' ' + Common.Utils.Metric.getCurrentMetricName()}</div>}
|
||||||
<div slot='after'>
|
<div slot='after'>
|
||||||
<Segmented>
|
<Segmented>
|
||||||
<Button outline className='decrement item-link' onClick={() => {props.changeLetterSpacing(letterSpacing, true)}}>
|
<Button outline className='decrement item-link' onClick={() => {props.changeLetterSpacing(letterSpacing, true)}}>
|
||||||
{isAndroid ? <Icon icon="icon-expand-down"></Icon> : ' - '}
|
{isAndroid ? <Icon icon="icon-expand-down"></Icon> : ' - '}
|
||||||
</Button>
|
</Button>
|
||||||
{isAndroid && <label>{letterSpacing + ' ' + Common.Utils.Metric.getCurrentMetricName()}</label>}
|
{isAndroid && <label>{(Number.isInteger(letterSpacing) ? letterSpacing : letterSpacing.toFixed(2)) + ' ' + Common.Utils.Metric.getCurrentMetricName()}</label>}
|
||||||
<Button outline className='increment item-link' onClick={() => {props.changeLetterSpacing(letterSpacing, false)}}>
|
<Button outline className='increment item-link' onClick={() => {props.changeLetterSpacing(letterSpacing, false)}}>
|
||||||
{isAndroid ? <Icon icon="icon-expand-up"></Icon> : ' + '}
|
{isAndroid ? <Icon icon="icon-expand-up"></Icon> : ' + '}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
|
@ -377,13 +377,13 @@ const PageAdditionalFormatting = props => {
|
||||||
</List>
|
</List>
|
||||||
<List>
|
<List>
|
||||||
<ListItem title={_t.textLetterSpacing}>
|
<ListItem title={_t.textLetterSpacing}>
|
||||||
{!isAndroid && <div slot='after-start'>{Number(letterSpacing).toFixed(2) + ' ' + Common.Utils.Metric.getCurrentMetricName()}</div>}
|
{!isAndroid && <div slot='after-start'>{(Number.isInteger(letterSpacing) ? letterSpacing : letterSpacing.toFixed(2)) + ' ' + Common.Utils.Metric.getCurrentMetricName()}</div>}
|
||||||
<div slot='after'>
|
<div slot='after'>
|
||||||
<Segmented>
|
<Segmented>
|
||||||
<Button outline className='decrement item-link' onClick={() => {props.changeLetterSpacing(letterSpacing, true)}}>
|
<Button outline className='decrement item-link' onClick={() => {props.changeLetterSpacing(letterSpacing, true)}}>
|
||||||
{isAndroid ? <Icon icon="icon-expand-down"></Icon> : ' - '}
|
{isAndroid ? <Icon icon="icon-expand-down"></Icon> : ' - '}
|
||||||
</Button>
|
</Button>
|
||||||
{isAndroid && <label>{Number(letterSpacing).toFixed(2) + ' ' + Common.Utils.Metric.getCurrentMetricName()}</label>}
|
{isAndroid && <label>{(Number.isInteger(letterSpacing) ? letterSpacing : letterSpacing.toFixed(2)) + ' ' + Common.Utils.Metric.getCurrentMetricName()}</label>}
|
||||||
<Button outline className='increment item-link' onClick={() => {props.changeLetterSpacing(letterSpacing, false)}}>
|
<Button outline className='increment item-link' onClick={() => {props.changeLetterSpacing(letterSpacing, false)}}>
|
||||||
{isAndroid ? <Icon icon="icon-expand-up"></Icon> : ' + '}
|
{isAndroid ? <Icon icon="icon-expand-up"></Icon> : ' + '}
|
||||||
</Button>
|
</Button>
|
||||||
|
|
Loading…
Reference in a new issue