diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/publish-dialog/index.tsx b/packages/webapp/src/components/maps-page/action-dispatcher/publish-dialog/index.tsx index 1149879d..11f95062 100644 --- a/packages/webapp/src/components/maps-page/action-dispatcher/publish-dialog/index.tsx +++ b/packages/webapp/src/components/maps-page/action-dispatcher/publish-dialog/index.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { FormattedMessage, useIntl } from 'react-intl'; import { useMutation, useQueryClient } from 'react-query'; import { useSelector } from 'react-redux'; -import { AppBar, Checkbox, FormControl, FormControlLabel, Tab, Typography } from '@material-ui/core'; +import { AppBar, Checkbox, FormControl, FormControlLabel, Tab, TextareaAutosize, Typography } from '@material-ui/core'; import Client, { ErrorInfo } from '../../../../client'; @@ -10,6 +10,7 @@ import { activeInstance } from '../../../../redux/clientSlice'; import BaseDialog from '../base-dialog'; import { TabContext, TabList, TabPanel } from '@material-ui/lab'; import { fetchMapById, handleOnMutationSuccess } from '..'; +import { useStyles } from './style'; export type PublishProps = { mapId: number, @@ -27,6 +28,7 @@ const PublishDialog = (props: PublishProps) => { const queryClient = useQueryClient(); const intl = useIntl(); + const classes = useStyles(); const mutation = useMutation((model: boolean) => { return client.updateMapToPublic(mapId, model); }, @@ -93,21 +95,13 @@ const PublishDialog = (props: PublishProps) => { -

- -

+ `} /> -

- -

+
diff --git a/packages/webapp/src/components/maps-page/action-dispatcher/publish-dialog/style.ts b/packages/webapp/src/components/maps-page/action-dispatcher/publish-dialog/style.ts new file mode 100644 index 00000000..067722d5 --- /dev/null +++ b/packages/webapp/src/components/maps-page/action-dispatcher/publish-dialog/style.ts @@ -0,0 +1,11 @@ +import { createStyles, makeStyles, Theme } from "@material-ui/core"; + +export const useStyles = makeStyles((theme: Theme) => + createStyles({ + textarea: { + width: '100%', + padding: '15px 15px', + marging: '0px 10px' + } + }), +); \ No newline at end of file diff --git a/packages/webapp/src/components/maps-page/maps-list/index.tsx b/packages/webapp/src/components/maps-page/maps-list/index.tsx index bf302f8e..4cbf5cf3 100644 --- a/packages/webapp/src/components/maps-page/maps-list/index.tsx +++ b/packages/webapp/src/components/maps-page/maps-list/index.tsx @@ -311,7 +311,7 @@ export const MapsList = (props: MapsListProps) => { } setActiveRowAction(undefined); }; - + const handleOnSearchChange = (e: React.ChangeEvent) => { setSearchCondition(e.target.value); } @@ -319,7 +319,7 @@ export const MapsList = (props: MapsListProps) => { const isSelected = (id: number) => selected.indexOf(id) !== -1; return (
- +