代码回归

pull/292/MERGE
ChenX 6 years ago
parent 263d03f8fa
commit 26a00f0c97

@ -19,6 +19,7 @@ export class CommandInput extends React.Component<Props, null>
let store = this.props.commandStore; let store = this.props.commandStore;
return ( return (
<div className="command-input-area" style={{ display: "flex" }}> <div className="command-input-area" style={{ display: "flex" }}>
<div style={{ display: "flex", width: "100%", position: "relative" }}>
<div className="drag-area" data-id="dragArea" /> <div className="drag-area" data-id="dragArea" />
<Button <Button
icon="wrench" icon="wrench"
@ -30,6 +31,7 @@ export class CommandInput extends React.Component<Props, null>
minimal={true} minimal={true}
small={true} small={true}
/> />
<div style={{ position: "absolute", left: 60, bottom: 0, width: `calc( 100% - ${60}px)` }}>
<InputHint <InputHint
cmdList={store.cmdList} cmdList={store.cmdList}
keyWordList={store.keyWordList} keyWordList={store.keyWordList}
@ -38,6 +40,8 @@ export class CommandInput extends React.Component<Props, null>
historyCmdList={store.historyCmdList} historyCmdList={store.historyCmdList}
commandStore={this.props.commandStore} commandStore={this.props.commandStore}
/> />
</div>
</div>
<Icon icon="caret-up" onClick={this.props.ShowOutput} /> <Icon icon="caret-up" onClick={this.props.ShowOutput} />
</div> </div>
) )

@ -253,7 +253,7 @@ export class InputHint extends React.Component<InputHintProps, InputHitState>
public render() public render()
{ {
return ( return (
<div id="input-hint" style={{ flex: "1" }}> <div id="input-hint" >
<div className="input" style={{ display: "flex", alignItems: "center" }}> <div className="input" style={{ display: "flex", alignItems: "center" }}>
<ul className="recommend-command"> <ul className="recommend-command">
{ {

Loading…
Cancel
Save