Skip to content

Commit

Permalink
Minor improvements for mobile display (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas-C authored May 19, 2024
1 parent d0b6c01 commit 061174b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Terminal</title>
<link href="src/terminal.css" rel="stylesheet" type="text/css">
Expand Down
2 changes: 1 addition & 1 deletion src/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function setHeader( msg ) {
<img src="${ imgUrl }" width="${ imgSize }" height="${ imgSize }"
style="float: left; padding-right: 10px" class="${ serverDatabase.iconClass || "" }">
<h2 style="letter-spacing: 4px">${ serverDatabase.serverName }</h2>
<p>Logged in: ${ serverDatabase.serverAddress } ( ${ dateStr } ) </p>
<p>Logged in: ${ serverDatabase.serverAddress } (&nbsp;${ dateStr }&nbsp;) </p>
${ serverDatabase.headerExtraHTML || "" }
<p>Enter "help" for more information.</p>
`;
Expand Down
5 changes: 0 additions & 5 deletions src/terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ function Terminal() {
loadHistoryFromLocalStorage();
addCmdLineListeners();

// Recover focus on terminal
window.addEventListener( "click", () => {
cmdLine_.focus();
} );

function addCmdLineListeners() {
cmdLine_.addEventListener( "keydown", historyHandler_ );
cmdLine_.addEventListener( "keydown", processNewCommand_ );
Expand Down

0 comments on commit 061174b

Please sign in to comment.