@wendongfly/myhi 1.3.167 → 1.3.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +29 -7
- package/package.json +1 -1
package/dist/index.html
CHANGED
|
@@ -81,6 +81,28 @@
|
|
|
81
81
|
#conn-dot.on { background: var(--green); box-shadow: 0 0 6px var(--green); }
|
|
82
82
|
#conn-dot.off { background: var(--red); }
|
|
83
83
|
|
|
84
|
+
/* 顶栏右侧按钮组:空间不够时整组换行,但按钮自身永不收缩——
|
|
85
|
+
否则中文标签被挤成一字一行竖排(手机端反馈「不美观」的主因) */
|
|
86
|
+
.hd-actions {
|
|
87
|
+
display: flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 0.6rem;
|
|
90
|
+
flex-wrap: wrap;
|
|
91
|
+
justify-content: flex-end;
|
|
92
|
+
}
|
|
93
|
+
.hd-btn {
|
|
94
|
+
background: none; border: 1px solid var(--border); color: var(--muted);
|
|
95
|
+
font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 6px; cursor: pointer;
|
|
96
|
+
width: auto; white-space: nowrap; flex-shrink: 0;
|
|
97
|
+
}
|
|
98
|
+
/* 手机(≤540px):藏用户名、文字标签只留图标,一行放下且不憋屈 */
|
|
99
|
+
@media (max-width: 540px) {
|
|
100
|
+
#user-name { display: none; }
|
|
101
|
+
.hd-actions { gap: 0.4rem; }
|
|
102
|
+
.hd-btn { padding: 0.32rem 0.48rem; }
|
|
103
|
+
.hd-btn .hd-txt { display: none; }
|
|
104
|
+
}
|
|
105
|
+
|
|
84
106
|
/* ── Session list ── */
|
|
85
107
|
#list {
|
|
86
108
|
flex: 1;
|
|
@@ -456,14 +478,14 @@
|
|
|
456
478
|
<div id="app">
|
|
457
479
|
<div id="header">
|
|
458
480
|
<div class="logo">my<span>hi</span></div>
|
|
459
|
-
<div
|
|
481
|
+
<div class="hd-actions">
|
|
460
482
|
<span id="user-name" style="font-size:0.8rem;color:var(--muted)"></span>
|
|
461
|
-
<button id="grid-btn" onclick="location.href='/grid'" title="分屏工作台(多任务并排)"
|
|
462
|
-
<button id="appearance-btn" onclick="openAppearance()" title="外观"
|
|
463
|
-
<button id="doctor-btn" onclick="openDoctor()"
|
|
464
|
-
<button id="usage-btn" onclick="showUsage()"
|
|
465
|
-
<button id="passwd-btn" onclick="openPasswdSheet()" title="修改我的密码" style="display:none
|
|
466
|
-
<button id="logout-btn" onclick="doLogout()" style="display:none
|
|
483
|
+
<button id="grid-btn" class="hd-btn" onclick="location.href='/grid'" title="分屏工作台(多任务并排)">▦ 分屏</button>
|
|
484
|
+
<button id="appearance-btn" class="hd-btn" onclick="openAppearance()" title="外观">🎨</button>
|
|
485
|
+
<button id="doctor-btn" class="hd-btn" onclick="openDoctor()" title="会话体检">🩺<span class="hd-txt"> 体检</span></button>
|
|
486
|
+
<button id="usage-btn" class="hd-btn" onclick="showUsage()" title="用量">📊<span class="hd-txt"> 用量</span></button>
|
|
487
|
+
<button id="passwd-btn" class="hd-btn" onclick="openPasswdSheet()" title="修改我的密码" style="display:none">🔑<span class="hd-txt"> 改密码</span></button>
|
|
488
|
+
<button id="logout-btn" class="hd-btn" onclick="doLogout()" style="display:none">退出</button>
|
|
467
489
|
<div id="conn-dot"></div>
|
|
468
490
|
</div>
|
|
469
491
|
</div>
|
package/package.json
CHANGED