Skip to content

Commit

Permalink
fix history bug
Browse files Browse the repository at this point in the history
  • Loading branch information
jgphilpott committed Mar 7, 2024
1 parent da7cccf commit d62f81c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
24 changes: 16 additions & 8 deletions serial/browser/sender.css
Original file line number Diff line number Diff line change
Expand Up @@ -201,14 +201,10 @@ h2#output-heading {
text-align: center;
}

div#history {
white-space: nowrap;
}

div#input,
div#output {

width: calc(50vw - 2px);
width: calc(50vw - 0px);
height: calc(100vh - 150px);

display: inline-block;
Expand Down Expand Up @@ -237,17 +233,25 @@ div#output p {
}

div#input {

float: left;

border-top: 1px solid cyan;
border-right: 1px dashed white;
border-right: 0.5px solid white;

}

div#input .pointer {
color: cyan;
}

div#output {

float: right;

border-top: 1px solid magenta;
border-left: 1px dashed white;
border-left: 0.5px solid white;

}

div#output .pointer {
Expand Down Expand Up @@ -308,9 +312,13 @@ textarea#prompt {
outline: none;
box-shadow: none;
border-style: none;
border-top: 1px solid white;

background-image: linear-gradient(to right, black 50%, white 50%);
background-repeat: repeat-x;
background-size: 10px 1px;
background-color: black;
background-position: top;

caret-color: cyan;
color: white;

Expand Down
3 changes: 2 additions & 1 deletion serial/browser/sender.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ document.addEventListener("DOMContentLoaded", (event) => {

let inputs = localRead("inputs")
let outputs = localRead("outputs")
let history = localRead("history")

history = localRead("history")

baudRate = baudRate != null ? baudRate : baudRateDefault
bufferSize = bufferSize != null ? bufferSize : bufferSizeDefault
Expand Down

0 comments on commit d62f81c

Please sign in to comment.