mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 07:31:55 +08:00
fix smart art direction
This commit is contained in:
@ -826,8 +826,8 @@ const EditText = props => {
|
||||
}
|
||||
</ListItem>
|
||||
}
|
||||
{!inSmartArt && !inSmartArtInternal && [
|
||||
<ListItem key="bullet" title={t('Edit.textBulletsAndNumbers')} link='/edit-bullets-and-numbers/' routeProps={{
|
||||
{!inSmartArt && !inSmartArtInternal &&
|
||||
<ListItem title={t('Edit.textBulletsAndNumbers')} link='/edit-bullets-and-numbers/' routeProps={{
|
||||
onBullet: props.onBullet,
|
||||
onNumber: props.onNumber,
|
||||
onMultiLevelList: props.onMultiLevelList,
|
||||
@ -838,15 +838,15 @@ const EditText = props => {
|
||||
{!isAndroid &&
|
||||
<SvgIcon slot="media" symbolId={IconBullets.id} className={'icon icon-svg ' + (isRtlTextDirection ? 'icon-svg-rtl' : '')} />
|
||||
}
|
||||
</ListItem>,
|
||||
<ListItem key="direction" title={t('Edit.textTextDirection')} link='/edit-text-direction/' routeProps={{
|
||||
</ListItem>
|
||||
}
|
||||
<ListItem key="direction" title={t('Edit.textTextDirection')} link='/edit-text-direction/' routeProps={{
|
||||
setRtlTextdDirection: props.setRtlTextdDirection
|
||||
}}>
|
||||
{!isAndroid &&
|
||||
<SvgIcon slot="media" symbolId={isRtlTextDirection ? IconTextDirectionRtl.id : IconTextDirectionLtr.id} className='icon icon-svg' />
|
||||
}
|
||||
</ListItem>
|
||||
]}
|
||||
<ListItem title={t("Edit.textLineSpacing")} link='/edit-text-line-spacing/' routeProps={{
|
||||
onLineSpacing: props.onLineSpacing
|
||||
}}>
|
||||
|
||||
@ -404,7 +404,7 @@ const PageDirection = props => {
|
||||
const { t } = useTranslation();
|
||||
const _t = t('View.Edit', {returnObjects: true});
|
||||
const storeTextSettings = props.storeTextSettings;
|
||||
const textDirection = storeTextSettings.textDirection || 1;
|
||||
const textDirection = storeTextSettings.textDirection || Asc.c_oReadingOrderTypes.LTR;
|
||||
|
||||
return (
|
||||
<Page>
|
||||
@ -422,18 +422,18 @@ const PageDirection = props => {
|
||||
</Navbar>
|
||||
<List>
|
||||
<ListItem title={_t.textLtrTextDirection} radio
|
||||
checked={textDirection === 1}
|
||||
checked={textDirection === Asc.c_oReadingOrderTypes.LTR}
|
||||
radioIcon="end"
|
||||
onChange={() => {
|
||||
props.setRtlTextdDirection(1);
|
||||
props.setRtlTextdDirection(Asc.c_oReadingOrderTypes.LTR);
|
||||
}}>
|
||||
<SvgIcon slot="media" symbolId={IconTextDirectionLtr.id} className="icon icon-svg" />
|
||||
</ListItem>
|
||||
<ListItem title={_t.textRtlTextDirection} radio
|
||||
checked={textDirection === 2}
|
||||
checked={textDirection === Asc.c_oReadingOrderTypes.RTL}
|
||||
radioIcon="end"
|
||||
onChange={() => {
|
||||
props.setRtlTextdDirection(2);
|
||||
props.setRtlTextdDirection(Asc.c_oReadingOrderTypes.RTL);
|
||||
}}>
|
||||
<SvgIcon slot="media" symbolId={IconTextDirectionRtl.id} className="icon icon-svg" />
|
||||
</ListItem>
|
||||
|
||||
Reference in New Issue
Block a user