[refactor](trx-frontend-http): align logo header naming
Co-authored-by: OpenAI Codex <codex@openai.com> Signed-off-by: Stan Grams <sjg@haxx.space>
This commit is contained in:
@@ -29,15 +29,15 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header">
|
<div class="header">
|
||||||
|
<div class="header-left">
|
||||||
|
<img id="logo" class="header-logo" src="/logo.png?v=1" alt="trx logo" onerror="this.style.display='none'" />
|
||||||
|
</div>
|
||||||
<div class="header-text">
|
<div class="header-text">
|
||||||
<div class="title"><span id="rig-title">trx-rs</span></div>
|
<div class="title"><span id="rig-title">trx-rs</span></div>
|
||||||
<div class="subtitle" id="server-subtitle"></div>
|
<div class="subtitle" id="server-subtitle"></div>
|
||||||
<div class="subtitle" id="rig-subtitle" style="font-weight: 700;">Rig: --</div>
|
<div class="subtitle" id="rig-subtitle" style="font-weight: 700;">Rig: --</div>
|
||||||
<div class="subtitle" id="owner-subtitle">Owner: --</div>
|
<div class="subtitle" id="owner-subtitle">Owner: --</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="header-right">
|
|
||||||
<img id="logo" class="header-logo" src="/logo.png?v=1" alt="trx logo" onerror="this.style.display='none'" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<!-- Auth gate (hidden by default, shown if auth is required) -->
|
<!-- Auth gate (hidden by default, shown if auth is required) -->
|
||||||
<div id="auth-gate" style="display:none; max-width: 30rem; margin: 0 auto 0.9rem; padding: 1.25rem 0 1.5rem; text-align: center;">
|
<div id="auth-gate" style="display:none; max-width: 30rem; margin: 0 auto 0.9rem; padding: 1.25rem 0 1.5rem; text-align: center;">
|
||||||
|
|||||||
@@ -61,11 +61,12 @@
|
|||||||
body {
|
body {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-height: 100vh;
|
height: 100vh;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
display: block;
|
display: block;
|
||||||
background: var(--bg);
|
background: var(--bg);
|
||||||
color: var(--text);
|
color: var(--text);
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.card {
|
.card {
|
||||||
width: min(100%, 1280px);
|
width: min(100%, 1280px);
|
||||||
@@ -73,6 +74,10 @@ body {
|
|||||||
padding: 0.85rem 1.25rem 1.5rem;
|
padding: 0.85rem 1.25rem 1.5rem;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
height: 100vh;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
.label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; display: block; }
|
.label { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 6px; display: block; }
|
||||||
#tab-main .label > span {
|
#tab-main .label > span {
|
||||||
@@ -346,9 +351,9 @@ button:disabled { opacity: 0.6; cursor: not-allowed; }
|
|||||||
small { color: var(--text-muted); }
|
small { color: var(--text-muted); }
|
||||||
.header {
|
.header {
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: minmax(0, 1fr) auto;
|
grid-template-columns: auto minmax(0, 1fr);
|
||||||
align-items: center;
|
align-items: center;
|
||||||
column-gap: 1.5em;
|
column-gap: 1rem;
|
||||||
margin-bottom: 0.5rem;
|
margin-bottom: 0.5rem;
|
||||||
padding: 0.25rem 0 0.15rem;
|
padding: 0.25rem 0 0.15rem;
|
||||||
}
|
}
|
||||||
@@ -396,12 +401,12 @@ small { color: var(--text-muted); }
|
|||||||
height: clamp(4.2rem, 11vh, 6.25rem);
|
height: clamp(4.2rem, 11vh, 6.25rem);
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.header-right {
|
.header-left {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-end;
|
justify-content: flex-start;
|
||||||
gap: 0.75rem;
|
gap: 0;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
.top-bar-actions {
|
.top-bar-actions {
|
||||||
@@ -487,7 +492,8 @@ small { color: var(--text-muted); }
|
|||||||
.meter-bar { flex: 1 1 auto; height: 12px; border-radius: 999px; background: var(--btn-bg); border: 1px solid var(--border-light); overflow: hidden; }
|
.meter-bar { flex: 1 1 auto; height: 12px; border-radius: 999px; background: var(--btn-bg); border: 1px solid var(--border-light); overflow: hidden; }
|
||||||
.meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow), var(--accent-red)); transition: width 150ms ease; }
|
.meter-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent-green), var(--accent-yellow), var(--accent-red)); transition: width 150ms ease; }
|
||||||
.meter-value { font-size: 0.95rem; color: var(--text-heading); min-width: 64px; text-align: right; }
|
.meter-value { font-size: 0.95rem; color: var(--text-heading); min-width: 64px; text-align: right; }
|
||||||
#content { display: flex; flex-direction: column; gap: 1.1rem; }
|
#content { display: flex; flex-direction: column; gap: 1.1rem; min-height: 0; overflow: hidden; }
|
||||||
|
.tab-panel { flex: 1 1 auto; min-height: 0; overflow: hidden; }
|
||||||
.tab-bar {
|
.tab-bar {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -523,7 +529,7 @@ small { color: var(--text-muted); }
|
|||||||
.about-table td:first-child { color: var(--text-muted); width: 40%; }
|
.about-table td:first-child { color: var(--text-muted); width: 40%; }
|
||||||
.plugin-item { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); color: var(--text); }
|
.plugin-item { padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--border); color: var(--text); }
|
||||||
.plugin-item:last-child { border-bottom: none; }
|
.plugin-item:last-child { border-bottom: none; }
|
||||||
.footer { display: flex; justify-content: space-between; align-items: baseline; margin-top: 1.1rem; }
|
.footer { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 1rem; flex-shrink: 0; }
|
||||||
.full-row { grid-column: 1 / -1; }
|
.full-row { grid-column: 1 / -1; }
|
||||||
.copyright { color: var(--text-muted); font-size: 0.75rem; opacity: 0.7; }
|
.copyright { color: var(--text-muted); font-size: 0.75rem; opacity: 0.7; }
|
||||||
.copyright a { color: var(--accent-green); text-decoration: none; }
|
.copyright a { color: var(--accent-green); text-decoration: none; }
|
||||||
@@ -661,13 +667,13 @@ button:focus-visible, input:focus-visible, select:focus-visible {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (max-width: 760px) {
|
@media (max-width: 760px) {
|
||||||
.card { padding: 0.7rem 0.7rem 1.1rem; }
|
.card { padding: 0.7rem 0.7rem 1rem; }
|
||||||
button { min-height: 2.8rem; font-size: 0.95rem; }
|
button { min-height: 2.8rem; font-size: 0.95rem; }
|
||||||
input.status-input, select.status-input { font-size: 1.1rem; }
|
input.status-input, select.status-input { font-size: 1.1rem; }
|
||||||
.freq-inline { gap: 0.5rem; }
|
.freq-inline { gap: 0.5rem; }
|
||||||
.freq-inline { flex-wrap: wrap; }
|
.freq-inline { flex-wrap: wrap; }
|
||||||
.header-text { width: auto; min-width: 0; flex: 0 1 auto; }
|
.header-text { width: auto; min-width: 0; flex: 0 1 auto; }
|
||||||
.header-right { justify-content: flex-end; }
|
.header-left { justify-content: flex-end; }
|
||||||
.tab-bar { flex-wrap: wrap; }
|
.tab-bar { flex-wrap: wrap; }
|
||||||
.top-bar-actions { width: 100%; justify-content: space-between; }
|
.top-bar-actions { width: 100%; justify-content: space-between; }
|
||||||
.header-rig-switch { width: auto; justify-content: flex-end; }
|
.header-rig-switch { width: auto; justify-content: flex-end; }
|
||||||
|
|||||||
Reference in New Issue
Block a user