Skip to content

Commit cff38ab

Browse files
committed
started working on truncation, commented CSS because this is going to be harder to solve
1 parent 1b42219 commit cff38ab

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

scout-ui/src/object-tree/index.less

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,12 @@ span.caret-placeholder {
6666
cursor: pointer;
6767
}
6868
}
69+
70+
// .truncate-jsprimvalue {
71+
// max-width: 75%;
72+
// overflow-x: hidden;
73+
// text-overflow: ellipsis;
74+
// display: inline-block;
75+
// white-space: nowrap;
76+
// margin-bottom: -4px;
77+
// }
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
span.jsprimvalue
22
if (typeof(model.value) === 'string')
3-
| "#{model.value}"
3+
| "#[span(class='truncate-jsprimvalue', title="#{model.value}") #{model.value}]"
44
else
5-
= model.value
5+
| #[span(class='truncate-jsprimvalue', title="#{model.value}") #{model.value}]

0 commit comments

Comments
 (0)