mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-09 18:23:20 +02:00
Fix up status bar display on small screens
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
+9
-9
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
@@ -13,8 +13,8 @@
|
|||||||
<link rel="shortcut icon" href="/favicon.ico" />
|
<link rel="shortcut icon" href="/favicon.ico" />
|
||||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
||||||
<link rel="manifest" href="/site.webmanifest" />
|
<link rel="manifest" href="/site.webmanifest" />
|
||||||
<script type="module" crossorigin src="/assets/index-Ck-mz-Y8.js"></script>
|
<script type="module" crossorigin src="/assets/index-CAtwmgBG.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-CcSjAzwK.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-C-fUaa04.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="root"></div>
|
<div id="root"></div>
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ export function StatusBar({ health, config, onSettingsClick, onMenuClick }: Stat
|
|||||||
</button>
|
</button>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
<h1 className="hidden lg:block text-base font-semibold mr-auto">RemoteTerm</h1>
|
<h1 className="text-base font-semibold mr-auto">RemoteTerm</h1>
|
||||||
|
|
||||||
<div className="flex items-center gap-1 text-[#888]">
|
<div className="flex items-center gap-1 text-[#888]">
|
||||||
<div className={`w-2 h-2 rounded-full ${connected ? 'bg-[#4caf50]' : 'bg-[#666]'}`} />
|
<div className={`w-2 h-2 rounded-full ${connected ? 'bg-[#4caf50]' : 'bg-[#666]'}`} />
|
||||||
@@ -54,14 +54,21 @@ export function StatusBar({ health, config, onSettingsClick, onMenuClick }: Stat
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{config && (
|
{config && (
|
||||||
<div className="hidden lg:flex items-center gap-1 text-[#888]">
|
<div className="hidden lg:flex items-center gap-2 text-[#888]">
|
||||||
<span className="text-[#e0e0e0]">{config.name || 'Unnamed'}</span>
|
<span className="text-[#e0e0e0]">{config.name || 'Unnamed'}</span>
|
||||||
|
<span
|
||||||
|
className="font-mono text-[#888] cursor-pointer hover:text-[#4a9eff]"
|
||||||
|
onClick={() => {
|
||||||
|
navigator.clipboard.writeText(config.public_key);
|
||||||
|
toast.success('Public key copied!');
|
||||||
|
}}
|
||||||
|
title="Click to copy public key"
|
||||||
|
>
|
||||||
|
{config.public_key.toLowerCase()}
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{/* Spacer to push buttons right on mobile */}
|
|
||||||
<div className="flex-1 lg:hidden" />
|
|
||||||
|
|
||||||
{!connected && (
|
{!connected && (
|
||||||
<button
|
<button
|
||||||
onClick={handleReconnect}
|
onClick={handleReconnect}
|
||||||
|
|||||||
Reference in New Issue
Block a user