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> { ...@@ -169,10 +169,14 @@ export class Editor extends React.PureComponent<propTypes, stateTypes> {
return ( return (
<div id="ks-editor"> <div id="ks-editor">
<h1>Interface</h1> <h1>Interface</h1>
<SpaceSelect onLoadSpace={this.loadSpace} />
<div id="content"> <div id="content">
<div id="sidepanel"> <div id="sidepanel">
<HistoryNavigator spaceId="space" historyObject={this.state.graph}/> <HistoryNavigator
<SpaceSelect onLoadSpace={this.loadSpace} /> spaceId="space"
historyObject={this.state.graph}
/>
<hr /> <hr />
<ToolPool state={this.state.state} /> <ToolPool state={this.state.state} />
<hr /> <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 React, { ChangeEvent } from "react";
import { saveGraphJson } from "../../../datasets"; import { saveGraphJson } from "../../../datasets";
import ManagedData from "../structures/manageddata"; import ManagedData from "../structures/manageddata";
import "./historynavigator.css";
type propTypes = { type propTypes = {
historyObject: ManagedData; historyObject: ManagedData;
......
div#ks-editor #spaceselect {
display: flex;
}
div#ks-editor #spaceselect > select { 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> { ...@@ -56,7 +56,6 @@ export class SpaceSelect extends React.Component<propTypes, stateTypes> {
</option> </option>
))} ))}
</select> </select>
<button>Save</button>
</div> </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