-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Chrome support and add the field to send BiDi commands (#32)
* Fix Chrome support * Format * Add key to the network requests. * Add a field to send the command. * Address review feedback
- Loading branch information
Showing
5 changed files
with
148 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
.BiDiCommandInput { | ||
display: grid; | ||
height: 45px; | ||
align-content: center; | ||
grid-template-columns: auto 80px; | ||
column-gap: 20px; | ||
overflow: hidden; | ||
margin-inline: 20px; | ||
border-bottom: 1px solid #eee; | ||
} | ||
|
||
.BiDiCommandInput__input { | ||
border: 0; | ||
font-size: 14px; | ||
margin-left: 2px; | ||
} | ||
|
||
.BiDiCommandInput__form { | ||
display: contents; | ||
} | ||
|
||
.BiDiCommandInput__button { | ||
border: 0; | ||
text-align: left; | ||
height: 24px; | ||
font-size: 14px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import React from "react"; | ||
|
||
import "./BiDiCommandInput.css"; | ||
|
||
const BiDiCommandInput = ({ onInputChange, onSubmit, value }) => { | ||
return ( | ||
<li className="BiDiCommandInput"> | ||
<form className="BiDiCommandInput__form" onSubmit={onSubmit}> | ||
<input | ||
className="BiDiCommandInput__input" | ||
id="bidiCommand" | ||
name="bidiCommand" | ||
onChange={onInputChange} | ||
placeholder="Write a BiDi command here to send it to the browser" | ||
value={value} | ||
/> | ||
<button className="entry__type BiDiCommandInput__button">Send</button> | ||
</form> | ||
</li> | ||
); | ||
}; | ||
|
||
export default BiDiCommandInput; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters