Skip to content
Snippets Groups Projects
Commit 4fd58453 authored by Maximilian Giller's avatar Maximilian Giller :squid:
Browse files

Adjusted history and space select styling

parent a5674ae1
No related branches found
No related tags found
1 merge request!2Implemented editor in the react framework
Pipeline #56613 passed
......@@ -169,10 +169,14 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
return (
<div id="ks-editor">
<h1>Interface</h1>
<SpaceSelect onLoadSpace={this.loadSpace} />
<div id="content">
<div id="sidepanel">
<HistoryNavigator spaceId="space" historyObject={this.state.graph}/>
<SpaceSelect onLoadSpace={this.loadSpace} />
<HistoryNavigator
spaceId="space"
historyObject={this.state.graph}
/>
<hr />
<ToolPool state={this.state.state} />
<hr />
......
div#ks-editor #history-navigator {
display: flex;
}
div#ks-editor #history-navigator > select {
flex-grow: 1;
max-width: 48%;
}
div#ks-editor #history-navigator > button {
flex-grow: 0;
}
import React, { ChangeEvent } from "react";
import { saveGraphJson } from "../../../datasets";
import ManagedData from "../structures/manageddata";
import "./historynavigator.css";
type propTypes = {
historyObject: ManagedData;
......
div#ks-editor #spaceselect {
display: flex;
}
div#ks-editor #spaceselect > select {
flex-grow: 1;
border: none;
background-color: transparent;
}
div#ks-editor #spaceselect > button {
flex-grow: 0;
}
\ No newline at end of file
......@@ -56,7 +56,6 @@ export class SpaceSelect extends React.Component<propTypes, stateTypes> {
</option>
))}
</select>
<button>Save</button>
</div>
);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment