Преглед на файлове

fix: 课程目录字段溢出隐藏

wmf преди 7 месеца
родител
ревизия
6c9f33403c
променени са 3 файла, в които са добавени 9 реда и са изтрити 3 реда
  1. 3 0
      server/public/css/insight.css
  2. 3 0
      server/public/css/insight.less
  3. 3 3
      server/views/video.html

+ 3 - 0
server/public/css/insight.css

@@ -1215,6 +1215,9 @@ body {
   height: 34px;
   line-height: 34px;
   font-size: 14px;
+  white-space: nowrap;
+  overflow: hidden;
+  text-overflow: ellipsis;
 }
 .video-wrap .video-menus .menus-list li a {
   color: #606060;

+ 3 - 0
server/public/css/insight.less

@@ -819,6 +819,9 @@ body{
         height: 34px;
         line-height: 34px;
         font-size: 14px;
+        white-space: nowrap;
+        overflow: hidden;
+        text-overflow: ellipsis;
         a{
           color: #606060;
         }

+ 3 - 3
server/views/video.html

@@ -24,10 +24,10 @@
             <ol class="menus-list">
               <% chapter.forEach(item => { %>
                 <% if(item.current){ %>
-                <li class="current"><%= item.title%></li>
+                <li class="current" title="<%= item.title%>"><%= item.title%></li>
                 <% }else{ %>
-                <li >
-                  <a href="<%= item.href%>"><%= item.title%></a>
+                <li>
+                  <a href="<%= item.href%>" title="<%= item.title%>"><%= item.title%></a>
                 </li>
                 <% } %> 
               <% }) %>