Bläddra i källkod

优化页面样式

niujiuru 6 dagar sedan
förälder
incheckning
42c88ac3cf
2 ändrade filer med 32 tillägg och 22 borttagningar
  1. 11 0
      web-ui.service/web/static/css/app.css
  2. 21 22
      web-ui.service/web/static/css/page5.css

+ 11 - 0
web-ui.service/web/static/css/app.css

@@ -858,3 +858,14 @@ textarea:focus {
         padding: 6px 10px;
     }
 }
+
+/* ================= 横屏宽屏 (高度≤600px 且 宽度>768px) =================
+   页面为受控高度布局(卡片高度固定, 输出区卡片内滚动):
+   输出区解除 280px 封顶, 随卡片充满剩余高度, 左右等高 */
+@media (max-height: 600px) and (min-width: 769px) {
+    /* .log-card .output 需同权重覆盖窄屏统一规格, 否则日志区仍被封顶 */
+    .output,
+    .log-card .output {
+        max-height: none;
+    }
+}

+ 21 - 22
web-ui.service/web/static/css/page5.css

@@ -140,16 +140,14 @@
 }
 
 /* ================= 移动端状态条统一 (竖屏+横屏共用) =================
-   状态项从"标签在上值在下"改为"标签居左、值居右"的行式布局,
-   上下成列像信息表一样整齐; 连接状态渲染为药丸徽章, 一眼可辨 */
+   状态项行式布局: 标签居左、值居右单行显示, 超长截断为省略号 */
 @media (max-width: 768px), (max-height: 600px) {
     .page-camera .page5-top {
         height: auto;
         flex-wrap: wrap;
     }
 
-    /* 两条状态栏都在 .page5-top 内: 各自独占整行、不可收缩(否则 flex 会
-       在换行前先把条目压扁, IP 值被挤成竖排), 条目内部再换行 */
+    /* 状态栏独占整行不可收缩, 条目内部再换行 */
     .page-camera .page5-top .status-bar {
         height: auto;
         width: 100%;
@@ -172,9 +170,12 @@
     }
 
     .page-camera .status-item .value {
-        text-align: right;
+        flex: 1;
         min-width: 0;
-        word-break: break-all;
+        text-align: right;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
     }
 
     /* 连接状态(第二条状态栏第 3 项): 药丸徽章突出显示, 色点随状态变色 */
@@ -187,20 +188,6 @@
         font-weight: 600;
     }
 
-    /* 第二条状态栏行内分配: GPIO22 弹性填充, 连接状态徽章紧贴右缘 —
-       标签长的 GPIO22 不再被挤压, 徽章位置恒定在最右 */
-    .page-camera .page5-top .status-bar:last-of-type > .status-item:nth-child(2) {
-        flex: 1 1 auto;
-        width: auto;
-        min-width: 0;
-    }
-
-    .page-camera .page5-top .status-bar:last-of-type > .status-item:nth-child(3) {
-        flex: 0 0 auto;
-        width: auto;
-        margin-left: auto;
-    }
-
     /* 操作按钮行: 独占整行, 按钮等分, 与全站按钮组同一规格 */
     .page-camera .status-item.button-item {
         width: 100%;
@@ -306,7 +293,7 @@
         width: calc(50% - 6px);
     }
 
-    /* 第二条状态栏: 网口相机值长占整行, GPIO22/连接状态 由共用规则分配(填充+贴右) */
+    /* 第二条状态栏: 三项各占整行 */
     .page-camera .page5-top .status-bar:last-of-type > .status-item {
         width: 100%;
     }
@@ -323,8 +310,20 @@
         width: calc(25% - 9px);
     }
 
-    /* 网口相机值长(IP/MASK), 单独放宽; GPIO22/连接状态 由共用规则分配 */
+    /* 横屏: 网口相机放宽, GPIO22 弹性填充, 连接状态徽章贴右 */
     .page-camera .page5-top .status-bar:last-of-type > .status-item:nth-child(1) {
         width: calc(40% - 9px);
     }
+
+    .page-camera .page5-top .status-bar:last-of-type > .status-item:nth-child(2) {
+        flex: 1 1 auto;
+        width: auto;
+        min-width: 0;
+    }
+
+    .page-camera .page5-top .status-bar:last-of-type > .status-item:nth-child(3) {
+        flex: 0 0 auto;
+        width: auto;
+        margin-left: auto;
+    }
 }