scorpio 2 years ago
parent
commit
2e3a50c813
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/views/project/index.vue

+ 7 - 1
src/views/project/index.vue

@@ -2,7 +2,7 @@
   <div>
     <tips-custom>
       <template #title>
-        <span class="font-24 bold">{{ detail.name }}</span>
+        <marquee class="font-24 bold title">{{ detail.name }}</marquee>
         <el-tag class="ml-20">{{ detail.tagsName }}</el-tag>
         <el-tag class="ml-10">{{ detail.report_type_name }}</el-tag>
       </template>
@@ -284,6 +284,12 @@ export default {
 </script>
 
 <style lang="scss" scoped>
+.title {
+  width: 400px;
+  overflow: hidden;
+  text-wrap: none;
+  white-space: nowrap;
+}
 .bottom {
   position: fixed;
   bottom: 0;