Merge pull request #1432 from ONLYOFFICE/feature/fix-bug-reactjs

Feature/fix bug reactjs
This commit is contained in:
maxkadushkin 2021-12-24 19:49:21 +03:00 committed by GitHub
commit bdd8958932
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 20 additions and 21 deletions

View file

@ -13,10 +13,10 @@
.content-block {
margin: 0 auto 15px;
// a {
// color: @text-normal;
// }
}
a {
color: @text-normal;
}
}
.settings-about-logo {
display: flex;

View file

@ -154,10 +154,12 @@
.about {
.content-block {
margin: 0 auto 15px;
p:last-child {
p:last-child a{
color: var(--brand-word);
text-decoration: underline;
}
}
}
}
.content-block {

View file

@ -189,7 +189,7 @@ const PageAdditionalFormatting = props => {
)
};
const PageBullets = props => {
const PageBullets = observer( props => {
const { t } = useTranslation();
const bulletArrays = [
[
@ -219,8 +219,7 @@ const PageBullets = props => {
if (bullet.type === -1) {
storeTextSettings.resetBullets(-1);
}
props.onBullet(bullet.type)
props.f7router.back();
props.onBullet(bullet.type);
}}>
{bullet.thumb.length < 1 ?
<Icon className="thumb" style={{position: 'relative'}}>
@ -234,9 +233,9 @@ const PageBullets = props => {
))}
</View>
)
};
});
const PageNumbers = props => {
const PageNumbers = observer( props => {
const { t } = useTranslation();
const numberArrays = [
[
@ -267,8 +266,7 @@ const PageNumbers = props => {
if (number.type === -1) {
storeTextSettings.resetNumbers(-1);
}
props.onNumber(number.type)
props.f7router.back();
props.onNumber(number.type);
}}>
{number.thumb.length < 1 ?
<Icon className="thumb" style={{position: 'relative'}}>
@ -282,9 +280,9 @@ const PageNumbers = props => {
))}
</View>
)
};
});
const PageMultiLevel = props => {
const PageMultiLevel = observer( props => {
const { t } = useTranslation();
const arrayMultiLevel = [
@ -305,7 +303,6 @@ const PageMultiLevel = props => {
onClick={(e) => {
item.type === -1 ? storeTextSettings.resetMultiLevel(-1) : storeTextSettings.resetMultiLevel(null);
props.onMultiLevelList(item.type);
props.f7router.back();
}}>
{item.thumb.length < 1 ?
<Icon className="thumb" style={{position: 'relative'}}>
@ -319,7 +316,7 @@ const PageMultiLevel = props => {
</View>
)
}
});
const PageBulletsAndNumbers = props => {
const { t } = useTranslation();
@ -337,13 +334,13 @@ const PageBulletsAndNumbers = props => {
}
</Navbar>
<Swiper pagination>
<SwiperSlide> <PageNumbers f7router={props.f7router} storeTextSettings={storeTextSettings} onNumber={props.onNumber}/></SwiperSlide>
<SwiperSlide> <PageBullets f7router={props.f7router} storeTextSettings={storeTextSettings} onBullet={props.onBullet}/></SwiperSlide>
<SwiperSlide> <PageMultiLevel f7router={props.f7router} storeTextSettings={storeTextSettings} onMultiLevelList={props.onMultiLevelList}/> </SwiperSlide>
<SwiperSlide> <PageNumbers storeTextSettings={storeTextSettings} onNumber={props.onNumber}/></SwiperSlide>
<SwiperSlide> <PageBullets storeTextSettings={storeTextSettings} onBullet={props.onBullet}/></SwiperSlide>
<SwiperSlide> <PageMultiLevel storeTextSettings={storeTextSettings} onMultiLevelList={props.onMultiLevelList}/> </SwiperSlide>
</Swiper>
</Page>
)
}
};
const PageLineSpacing = props => {
const { t } = useTranslation();