mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 06:37:56 +01:00
Fix styling
This commit is contained in:
parent
02deb9e90f
commit
ee157c1763
@ -170,8 +170,7 @@ export default class RestClient implements Client {
|
||||
const handler = (success: (mapId: number) => void, reject: (error: ErrorInfo) => void) => {
|
||||
axios
|
||||
.post(
|
||||
`${this.baseUrl}/c/restful/maps?title=${model.title}&description=${
|
||||
model.description ? model.description : ''
|
||||
`${this.baseUrl}/c/restful/maps?title=${model.title}&description=${model.description ? model.description : ''
|
||||
}`,
|
||||
model.content,
|
||||
{ headers: { 'Content-Type': model.contentType } }
|
||||
@ -280,8 +279,7 @@ export default class RestClient implements Client {
|
||||
})
|
||||
.then(() => {
|
||||
return axios.put(
|
||||
`${this.baseUrl}/c/restful/maps/${id}/description`,
|
||||
basicInfo.description,
|
||||
`${this.baseUrl}/c/restful/maps/${id}/description`, basicInfo.description || ' ',
|
||||
{ headers: { 'Content-Type': 'text/plain' } }
|
||||
);
|
||||
})
|
||||
@ -302,8 +300,7 @@ export default class RestClient implements Client {
|
||||
const handler = (success: (mapId: number) => void, reject: (error: ErrorInfo) => void) => {
|
||||
axios
|
||||
.post(
|
||||
`${this.baseUrl}/c/restful/maps?title=${model.title}&description=${
|
||||
model.description ? model.description : ''
|
||||
`${this.baseUrl}/c/restful/maps?title=${model.title}&description=${model.description ? model.description : ''
|
||||
}`,
|
||||
null,
|
||||
{ headers: { 'Content-Type': 'application/json' } }
|
||||
|
@ -63,7 +63,7 @@ export const StyledDiv = styled.nav`
|
||||
|
||||
display: grid;
|
||||
white-space: nowrap;
|
||||
grid-template-columns: 150px 1fr 130px 160px 50px;
|
||||
grid-template-columns: 200px 1fr 130px 160px 50px;
|
||||
`;
|
||||
|
||||
export const Logo = styled.span`
|
||||
|
@ -27,15 +27,17 @@ export const useStyles = makeStyles((theme: Theme) =>
|
||||
},
|
||||
newMapButton: {
|
||||
marginRight: 10,
|
||||
minWidth: '130px'
|
||||
},
|
||||
importButton: {
|
||||
marginRight: 10,
|
||||
minWidth: '130px'
|
||||
},
|
||||
rightButtonGroup: {
|
||||
marginRight: 10,
|
||||
flexGrow: 10,
|
||||
textAlign: 'right',
|
||||
minWidth: '200px',
|
||||
minWidth: '280px',
|
||||
},
|
||||
drawer: {
|
||||
width: drawerWidth,
|
||||
|
@ -16,7 +16,7 @@ import GlobalError from '../form/global-error';
|
||||
import SubmitButton from '../form/submit-button';
|
||||
import Typography from '@material-ui/core/Typography';
|
||||
import FormControl from '@material-ui/core/FormControl';
|
||||
import AppConfig from '../../classes/server-config';
|
||||
import AppConfig from '../../classes/app-config';
|
||||
|
||||
export type Model = {
|
||||
email: string;
|
||||
|
@ -3,7 +3,7 @@ import { createSlice } from '@reduxjs/toolkit';
|
||||
import { useQuery } from 'react-query';
|
||||
import Client, { AccountInfo, ErrorInfo, MapInfo } from '../classes/client';
|
||||
import { useSelector } from 'react-redux';
|
||||
import AppConfig from '../classes/server-config';
|
||||
import AppConfig from '../classes/app-config';
|
||||
|
||||
|
||||
export interface ClientStatus {
|
||||
|
@ -26,6 +26,9 @@ const theme = createMuiTheme({
|
||||
root: {
|
||||
color: '#f9a826',
|
||||
},
|
||||
outlined:{
|
||||
zIndex: 'inherit'
|
||||
}
|
||||
},
|
||||
MuiButton: {
|
||||
root: {
|
||||
@ -42,8 +45,7 @@ const theme = createMuiTheme({
|
||||
'&:hover': {
|
||||
backgroundColor: 'rgba(249, 168, 38, 0.91)',
|
||||
},
|
||||
},
|
||||
textPrimary: {},
|
||||
}
|
||||
},
|
||||
},
|
||||
typography: {
|
||||
|
Loading…
Reference in New Issue
Block a user