small ui adjustments
This commit is contained in:
commit
3f8f9197c1
@ -200,8 +200,8 @@ export function publishUnpublishedEntry(collection, slug, status) {
|
|||||||
const state = getState();
|
const state = getState();
|
||||||
const backend = currentBackend(state.config);
|
const backend = currentBackend(state.config);
|
||||||
const transactionID = uuid.v4();
|
const transactionID = uuid.v4();
|
||||||
dispatch(unpublishedEntryPublishRequest(collection, slug, status));
|
dispatch(unpublishedEntryPublishRequest(collection, slug, status, transactionID));
|
||||||
backend.publishUnpublishedEntry(collection, slug, status, transactionID)
|
backend.publishUnpublishedEntry(collection, slug, status)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
dispatch(unpublishedEntryPublished(collection, slug, status, transactionID));
|
dispatch(unpublishedEntryPublished(collection, slug, status, transactionID));
|
||||||
})
|
})
|
||||||
|
@ -1,5 +1,3 @@
|
|||||||
@import "material-icons.css";
|
|
||||||
|
|
||||||
html {
|
html {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@ -22,8 +20,18 @@ body {
|
|||||||
font-family: 'Roboto', sans-serif;
|
font-family: 'Roboto', sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nav {
|
||||||
|
display: block;
|
||||||
|
padding: 1rem;
|
||||||
|
|
||||||
|
& .heading {
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
:global #root,
|
:global #root,
|
||||||
:global #root > * {
|
:global #root > * {
|
||||||
|
margin-top: 64px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -278,3 +286,11 @@ h1 {
|
|||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.navDrawer {
|
||||||
|
max-width: 240px !important;
|
||||||
|
|
||||||
|
& .drawerContent {
|
||||||
|
max-width: 240px !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@ -47,7 +47,7 @@ class App extends React.Component {
|
|||||||
}
|
}
|
||||||
|
|
||||||
state = {
|
state = {
|
||||||
navDrawerIsVisible: false,
|
navDrawerIsVisible: true,
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
@ -155,7 +155,7 @@ class App extends React.Component {
|
|||||||
<NavDrawer
|
<NavDrawer
|
||||||
active={navDrawerIsVisible}
|
active={navDrawerIsVisible}
|
||||||
scrollY
|
scrollY
|
||||||
permanentAt="lg"
|
permanentAt={navDrawerIsVisible ? 'lg' : null}
|
||||||
onOverlayClick={this.toggleNavDrawer} // eslint-disable-line
|
onOverlayClick={this.toggleNavDrawer} // eslint-disable-line
|
||||||
theme={styles}
|
theme={styles}
|
||||||
>
|
>
|
||||||
@ -175,15 +175,15 @@ class App extends React.Component {
|
|||||||
</Navigation>
|
</Navigation>
|
||||||
</nav>
|
</nav>
|
||||||
</NavDrawer>
|
</NavDrawer>
|
||||||
|
<AppHeader
|
||||||
|
collections={collections}
|
||||||
|
commands={commands}
|
||||||
|
defaultCommands={defaultCommands}
|
||||||
|
runCommand={runCommand}
|
||||||
|
onCreateEntryClick={createNewEntryInCollection}
|
||||||
|
toggleNavDrawer={this.toggleNavDrawer}
|
||||||
|
/>
|
||||||
<Panel scrollY>
|
<Panel scrollY>
|
||||||
<AppHeader
|
|
||||||
collections={collections}
|
|
||||||
commands={commands}
|
|
||||||
defaultCommands={defaultCommands}
|
|
||||||
runCommand={runCommand}
|
|
||||||
onCreateEntryClick={createNewEntryInCollection}
|
|
||||||
toggleNavDrawer={this.toggleNavDrawer}
|
|
||||||
/>
|
|
||||||
<div className={styles.main}>
|
<div className={styles.main}>
|
||||||
{children}
|
{children}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user