fix adaptive size
This commit is contained in:
@@ -52,7 +52,7 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
|
||||
if(planContent && !isRemoveLastElementHistry.current) {
|
||||
history.current.push(planContent);
|
||||
isRemoveLastElementHistry.current = false;
|
||||
console.log(history.current.length, 'добавили 1')
|
||||
// console.log(history.current.length, 'добавили 1')
|
||||
}
|
||||
}, [planContent])
|
||||
|
||||
@@ -77,7 +77,7 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
|
||||
setPlanContent(history.current[history.current.length - 2]);
|
||||
history.current.splice(history.current.length - 1, 1);
|
||||
isRemoveLastElementHistry.current = true;
|
||||
console.log(history.current.length, 'убрали 1')
|
||||
// console.log(history.current.length, 'убрали 1')
|
||||
}
|
||||
|
||||
}
|
||||
@@ -216,7 +216,11 @@ export const MainPart: React.FC<TProps> = React.memo((props) => {
|
||||
|
||||
return <div className="main-part-container">
|
||||
<div className="background-image"></div>
|
||||
<MainPartHeader changeLang={(lang) => changeLang(lang)} onClickLogo={toMain}/>
|
||||
<MainPartHeader
|
||||
changeLang={(lang) => changeLang(lang)}
|
||||
onClickLogo={toMain}
|
||||
isSmallLogo={planContent ? true : false}
|
||||
/>
|
||||
<SwitchTransition mode="out-in">
|
||||
<CSSTransition
|
||||
key={changeContent.current}
|
||||
|
||||
Reference in New Issue
Block a user