forked from CITKParus/P8-Panels
WEBAPP: Общесистемные стили полос прокрутки в "выдвижных панелях" для панелей ПУПД
This commit is contained in:
parent
efed4b8ea2
commit
dac9bc4ea2
@ -27,6 +27,7 @@ import {
|
||||
Icon
|
||||
} from "@mui/material"; //Интерфейсные элементы
|
||||
import { ThemeProvider } from "@mui/material/styles"; //Подключение темы
|
||||
import { APP_STYLES } from "../../../app.styles"; //Типовые стили
|
||||
import { PlanSpecsList } from "./components/plans_list"; //Список планов
|
||||
import { PlanSpecDetail } from "./components/plan_detail"; //Детали плана
|
||||
import { lightTheme, darkTheme } from "./styles/themes"; //Стиль темы
|
||||
@ -63,7 +64,8 @@ const STYLES = {
|
||||
display: "inline-block",
|
||||
boxSizing: "border-box",
|
||||
backgroundColor: "background.plans_drawer_paper",
|
||||
color: "text.plans_finder.fontColor"
|
||||
color: "text.plans_finder.fontColor",
|
||||
...APP_STYLES.SCROLL
|
||||
}
|
||||
},
|
||||
PLANS_LIST_BOX: { paddingTop: "20px" },
|
||||
|
@ -10,6 +10,7 @@
|
||||
import React, { useContext, useState } from "react"; //Классы React
|
||||
import PropTypes from "prop-types"; //Контроль свойств компонента
|
||||
import { Drawer, Fab, Box, List, ListItemButton, ListItemText, Typography, TextField } from "@mui/material"; //Интерфейсные элементы
|
||||
import { APP_STYLES } from "../../../app.styles"; //Типовые стили
|
||||
import { MessagingСtx } from "../../context/messaging"; //Контекст сообщений
|
||||
import { CostJobsSpecsDataGrid } from "./fcjobssp"; //Собственные хуки таблиц
|
||||
import { useCostJobs, useFilteredFcjobs } from "./hooks"; //Вспомогательные хуки
|
||||
@ -35,7 +36,7 @@ const STYLES = {
|
||||
width: "350px",
|
||||
display: "inline-block",
|
||||
flexShrink: 0,
|
||||
[`& .MuiDrawer-paper`]: { width: "350px", display: "inline-block", boxSizing: "border-box" }
|
||||
[`& .MuiDrawer-paper`]: { width: "350px", display: "inline-block", boxSizing: "border-box", ...APP_STYLES.SCROLL }
|
||||
},
|
||||
CONTAINER: { textAlign: "center" }
|
||||
};
|
||||
|
@ -43,11 +43,12 @@ import { MessagingСtx } from "../../context/messaging"; //Контекст со
|
||||
import { NavigationCtx } from "../../context/navigation"; //Контекст навигации
|
||||
import { P8P_GANTT_CONFIG_PROPS } from "../../config_wrapper"; //Подключение компонентов к настройкам приложения
|
||||
import { APP_BAR_HEIGHT } from "../../components/p8p_app_workspace"; //Заголовок страницы
|
||||
import { APP_STYLES } from "../../../app.styles"; //Типовые стили
|
||||
import { P8PGantt, taskLegendDesc } from "../../components/p8p_gantt"; //Диаграмма Ганта
|
||||
import { xml2JSON, formatDateJSONDateOnly, formatDateRF, hasValue } from "../../core/utils"; //Вспомогательные функции
|
||||
import { useFilteredPlanCtlgs } from "./hooks"; //Вспомогательные хуки
|
||||
import { CostRouteListsDataGrid } from "./datagrids/fcroutlst";
|
||||
import { IncomFromDepsDataGrid } from "./datagrids/incomefromdeps";
|
||||
import { CostRouteListsDataGrid } from "./datagrids/fcroutlst"; //Таблица "Маршрутные листы"
|
||||
import { IncomFromDepsDataGrid } from "./datagrids/incomefromdeps"; //Таблица "Приходы из подразделений"
|
||||
|
||||
//---------
|
||||
//Константы
|
||||
@ -72,7 +73,7 @@ const STYLES = {
|
||||
width: "350px",
|
||||
display: "inline-block",
|
||||
flexShrink: 0,
|
||||
[`& .MuiDrawer-paper`]: { width: "350px", display: "inline-block", boxSizing: "border-box" }
|
||||
[`& .MuiDrawer-paper`]: { width: "350px", display: "inline-block", boxSizing: "border-box", ...APP_STYLES.SCROLL }
|
||||
},
|
||||
GANTT_CONTAINER: { height: `calc(100vh - ${APP_BAR_HEIGHT})`, width: "100vw", paddingTop: "24px" },
|
||||
GANTT_TITLE: { paddingLeft: "250px", paddingRight: "250px" },
|
||||
|
@ -41,7 +41,7 @@ const STYLES = {
|
||||
width: "350px",
|
||||
display: "inline-block",
|
||||
flexShrink: 0,
|
||||
[`& .MuiDrawer-paper`]: { width: "350px", display: "inline-block", boxSizing: "border-box" }
|
||||
[`& .MuiDrawer-paper`]: { width: "350px", display: "inline-block", boxSizing: "border-box", ...APP_STYLES.SCROLL }
|
||||
},
|
||||
CONTAINER: { textAlign: "center" },
|
||||
TITLE: { height: TITLE_HEIGHT, overflow: "hidden", paddingTop: TITLE_PADDING_TOP, paddingBottom: TITLE_PADDING_BOTTOM, display: "inline-table" },
|
||||
|
Loading…
x
Reference in New Issue
Block a user