Merge pull request #1844 from ONLYOFFICE/feature/fix-bugs
Feature/fix bugs
This commit is contained in:
commit
a5917e5a36
|
@ -132,6 +132,9 @@
|
||||||
.item-link .item-inner {
|
.item-link .item-inner {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.item-inner {
|
||||||
|
color: @text-normal;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Bullets, numbers and multilevels
|
// Bullets, numbers and multilevels
|
||||||
|
@ -1132,6 +1135,15 @@ input[type="number"]::-webkit-inner-spin-button {
|
||||||
border: 0.5px solid @background-menu-divider;
|
border: 0.5px solid @background-menu-divider;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Navigation list
|
||||||
|
|
||||||
|
.list.navigation-list {
|
||||||
|
.item-title {
|
||||||
|
color: @text-normal;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,8 @@ const AddOther = props => {
|
||||||
|
|
||||||
let isShape = storeFocusObjects.settings.indexOf('shape') > -1,
|
let isShape = storeFocusObjects.settings.indexOf('shape') > -1,
|
||||||
isText = storeFocusObjects.settings.indexOf('text') > -1,
|
isText = storeFocusObjects.settings.indexOf('text') > -1,
|
||||||
isChart = storeFocusObjects.settings.indexOf('chart') > -1;
|
isChart = storeFocusObjects.settings.indexOf('chart') > -1,
|
||||||
|
isHeader = storeFocusObjects.settings.indexOf('header') > -1;
|
||||||
|
|
||||||
let disabledAddLink = false,
|
let disabledAddLink = false,
|
||||||
disabledAddBreak = false,
|
disabledAddBreak = false,
|
||||||
|
@ -209,9 +210,11 @@ const AddOther = props => {
|
||||||
<Icon slot="media" icon="icon-sectionbreak"></Icon>
|
<Icon slot="media" icon="icon-sectionbreak"></Icon>
|
||||||
</ListItem>
|
</ListItem>
|
||||||
}
|
}
|
||||||
<ListItem title={_t.textTableContents} link="/add-table-contents/">
|
{!isHeader &&
|
||||||
<Icon slot="media" icon="icon-table-contents"></Icon>
|
<ListItem title={_t.textTableContents} link="/add-table-contents/">
|
||||||
</ListItem>
|
<Icon slot="media" icon="icon-table-contents"></Icon>
|
||||||
|
</ListItem>
|
||||||
|
}
|
||||||
{(isShape || isChart) || (isText && disabledAddFootnote) ? null :
|
{(isShape || isChart) || (isText && disabledAddFootnote) ? null :
|
||||||
<ListItem key='footnote' title={_t.textFootnote} link={'/add-footnote/'} routeProps={{
|
<ListItem key='footnote' title={_t.textFootnote} link={'/add-footnote/'} routeProps={{
|
||||||
getFootnoteProps: props.getFootnoteProps,
|
getFootnoteProps: props.getFootnoteProps,
|
||||||
|
|
|
@ -196,12 +196,11 @@ const EditParagraph = props => {
|
||||||
const paragraph = props.storeFocusObjects.paragraphObject;
|
const paragraph = props.storeFocusObjects.paragraphObject;
|
||||||
const curBackColor = storeParagraphSettings.backColor ? storeParagraphSettings.backColor : storeParagraphSettings.getBackgroundColor(paragraph);
|
const curBackColor = storeParagraphSettings.backColor ? storeParagraphSettings.backColor : storeParagraphSettings.getBackgroundColor(paragraph);
|
||||||
const background = curBackColor !== 'transparent' ? `#${(typeof curBackColor === "object" ? curBackColor.color : curBackColor)}` : '';
|
const background = curBackColor !== 'transparent' ? `#${(typeof curBackColor === "object" ? curBackColor.color : curBackColor)}` : '';
|
||||||
const activeStyle = Device.android ? 'link no-active-state' : 'no-active-state';
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Fragment>
|
<Fragment>
|
||||||
<BlockTitle>{t('Edit.textParagraphStyle')}</BlockTitle>
|
<BlockTitle>{t('Edit.textParagraphStyle')}</BlockTitle>
|
||||||
<List className={activeStyle} style={{marginBottom: 0}}>
|
<List style={{marginBottom: 0}}>
|
||||||
<ListItem link="/edit-paragraph-style/" title={!curStyle && curStyleName} routeProps={{
|
<ListItem link="/edit-paragraph-style/" title={!curStyle && curStyleName} routeProps={{
|
||||||
onStyleClick: props.onStyleClick,
|
onStyleClick: props.onStyleClick,
|
||||||
onSaveStyle: props.onSaveStyle,
|
onSaveStyle: props.onSaveStyle,
|
||||||
|
@ -246,7 +245,6 @@ const EditParagraphStyle = props => {
|
||||||
const paragraphStyles = storeParagraphSettings.paragraphStyles;
|
const paragraphStyles = storeParagraphSettings.paragraphStyles;
|
||||||
const curStyleName = storeParagraphSettings.styleName;
|
const curStyleName = storeParagraphSettings.styleName;
|
||||||
const thumbSize = storeParagraphSettings.styleThumbSize;
|
const thumbSize = storeParagraphSettings.styleThumbSize;
|
||||||
const activeStyle = Device.android ? 'link no-active-state' : 'no-active-state';
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
|
@ -266,7 +264,7 @@ const EditParagraphStyle = props => {
|
||||||
{Device.android && <Icon slot="media" icon="icon-create-style"></Icon>}
|
{Device.android && <Icon slot="media" icon="icon-create-style"></Icon>}
|
||||||
</ListItem>
|
</ListItem>
|
||||||
</List>
|
</List>
|
||||||
<List className={activeStyle}>
|
<List>
|
||||||
{paragraphStyles.map((style, index) => (
|
{paragraphStyles.map((style, index) => (
|
||||||
<ListItem
|
<ListItem
|
||||||
key={index}
|
key={index}
|
||||||
|
@ -345,13 +343,12 @@ const ChangeNextParagraphStyle = props => {
|
||||||
const storeParagraphSettings = props.storeParagraphSettings;
|
const storeParagraphSettings = props.storeParagraphSettings;
|
||||||
const paragraphStyles = storeParagraphSettings.paragraphStyles;
|
const paragraphStyles = storeParagraphSettings.paragraphStyles;
|
||||||
const thumbSize = storeParagraphSettings.styleThumbSize;
|
const thumbSize = storeParagraphSettings.styleThumbSize;
|
||||||
const activeStyle = Device.android ? 'link no-active-state' : 'no-active-state';
|
|
||||||
const [newParagraph, setParagraph] = useState(nextParagraphStyle);
|
const [newParagraph, setParagraph] = useState(nextParagraphStyle);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
<Navbar title={t('Edit.textNextParagraphStyle')} backLink={_t.textBack}></Navbar>
|
<Navbar title={t('Edit.textNextParagraphStyle')} backLink={_t.textBack}></Navbar>
|
||||||
<List className={activeStyle}>
|
<List>
|
||||||
<ListItem style={{paddingLeft: '5px'}} radio radioIcon="start" checked={!newParagraph} onClick={() => {
|
<ListItem style={{paddingLeft: '5px'}} radio radioIcon="start" checked={!newParagraph} onClick={() => {
|
||||||
if(newParagraph) {
|
if(newParagraph) {
|
||||||
setParagraph('');
|
setParagraph('');
|
||||||
|
|
Loading…
Reference in a new issue