瀏覽代碼

Limit station name to 1 line

Owen Diffey 8 年之前
父節點
當前提交
1fba4dad41
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      frontend/components/pages/Home.vue

+ 8 - 0
frontend/components/pages/Home.vue

@@ -330,6 +330,14 @@
 	.displayName {
 		word-wrap: break-word;
     	width: 80%;
+		word-wrap: break-word;
+	    overflow: hidden;
+	    text-overflow: ellipsis;
+	    display: -webkit-box;
+	    -webkit-box-orient: vertical;
+	    -webkit-line-clamp: 1;
+	    line-height: 30px;
+	    max-height: 30px;
 	}
 
 	.nightMode {