From 86aa639ca02d7e879a8bfac9ec5d7c7207cd3abe Mon Sep 17 00:00:00 2001 From: Mikhail Chechnev Date: Wed, 3 Sep 2025 15:13:56 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A6=D0=98=D0=A2=D0=9A-979=20-=20=D0=A3=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BB=D1=8F=D0=B5=D0=BC=D1=8B=D0=B9=20=D0=BE?= =?UTF-8?q?=D1=82=D1=81=D1=82=D1=83=D0=BF=20=D1=81=D0=B2=D0=B5=D1=80=D1=85?= =?UTF-8?q?=D1=83=20=D0=B4=D0=BB=D1=8F=20P8PEditorSybHeader?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/editors/p8p_editor_sub_header.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/components/editors/p8p_editor_sub_header.js b/app/components/editors/p8p_editor_sub_header.js index 8d97d1a..de7f4f6 100644 --- a/app/components/editors/p8p_editor_sub_header.js +++ b/app/components/editors/p8p_editor_sub_header.js @@ -17,7 +17,7 @@ import { Divider, Chip } from "@mui/material"; //Интерфейсные ком //Стили const STYLES = { - DIVIDER: { paddingTop: "20px" } + DIVIDER: pt => ({ paddingTop: pt || pt === 0 ? `${pt}px` : "20px" }) }; //----------- @@ -25,10 +25,10 @@ const STYLES = { //----------- //Заголовок раздела редактора -const P8PEditorSubHeader = ({ title }) => { +const P8PEditorSubHeader = ({ title, paddingTop }) => { //Формирование представления return ( - + ); @@ -36,7 +36,8 @@ const P8PEditorSubHeader = ({ title }) => { //Контроль свойств компонента - Заголовок раздела редактора P8PEditorSubHeader.propTypes = { - title: PropTypes.string.isRequired + title: PropTypes.string.isRequired, + paddingTop: PropTypes.number }; //----------------