fix: Make prompt fit on mobile and fix autocaps
All checks were successful
Build Docker / BuildImage (push) Successful in 56s
All checks were successful
Build Docker / BuildImage (push) Successful in 56s
This commit is contained in:
@@ -94,10 +94,10 @@
|
|||||||
<div class="line output">Type 'help' for available commands</div>
|
<div class="line output">Type 'help' for available commands</div>
|
||||||
<div class="line output"></div>
|
<div class="line output"></div>
|
||||||
<div id="input-line">
|
<div id="input-line">
|
||||||
<div class="prompt-line">┌──({{user}}@NathanWoodburn)-[~]</div>
|
<div class="prompt-line">┌──({{user}}@NW)-[~]</div>
|
||||||
<div class="input-row">
|
<div class="input-row">
|
||||||
<span class="prompt-line">└─$ </span>
|
<span class="prompt-line">└─$ </span>
|
||||||
<input type="text" id="command-input" autofocus autocomplete="off" spellcheck="false">
|
<input type="text" id="command-input" autofocus autocomplete="off" spellcheck="false" autocapitalize="none">
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
const data = await response.json();
|
const data = await response.json();
|
||||||
if (data.output) {
|
if (data.output) {
|
||||||
currentPwd = data.output;
|
currentPwd = data.output;
|
||||||
inputLine.querySelector('.prompt-line:first-child').textContent = `┌──({{user}}@NathanWoodburn)-[${currentPwd}]`;
|
inputLine.querySelector('.prompt-line:first-child').textContent = `┌──({{user}}@NW)-[${currentPwd}]`;
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error('Failed to fetch pwd:', err);
|
console.error('Failed to fetch pwd:', err);
|
||||||
@@ -270,7 +270,7 @@
|
|||||||
// Display command
|
// Display command
|
||||||
const cmdLine = document.createElement('div');
|
const cmdLine = document.createElement('div');
|
||||||
cmdLine.className = 'line';
|
cmdLine.className = 'line';
|
||||||
cmdLine.innerHTML = `<span class="prompt">┌──({{user}}@NathanWoodburn)-[${currentPwd}]\n└─$ </span>${command}`;
|
cmdLine.innerHTML = `<span class="prompt">┌──({{user}}@NW)-[${currentPwd}]\n└─$ </span>${command}`;
|
||||||
terminal.appendChild(cmdLine);
|
terminal.appendChild(cmdLine);
|
||||||
|
|
||||||
// Add to history
|
// Add to history
|
||||||
|
|||||||
Reference in New Issue
Block a user