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