Skip to content

Commit e2a127a

Browse files
Merge pull request #119 from mh7777777/master
Allow 55 characters on feature name in layout 2.
2 parents 3f4a4e3 + 5836d9a commit e2a127a

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

widget/index.html

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@
339339

340340
spanTitle.innerText = p.title;
341341

342+
if ([2].indexOf(layout) !== -1 && p.title && p.title.length > 55) {
343+
spanTitle.innerText = p.title.substring(0, 55) + '...';
344+
}
345+
342346
if (layout == 3 && obj.data.design.hideText) {
343347
spanTitle.classList.add('hide');
344348
}
@@ -901,14 +905,14 @@
901905
display: inline-block;
902906
}
903907

908+
.layout2 .media-holder-text {
909+
display: flex;
910+
align-items: center;
911+
height: 100%;
912+
}
913+
904914
.layout2 .media-holder-text span {
905-
overflow: hidden;
906-
text-overflow: ellipsis;
907-
white-space: nowrap;
908-
position: relative;
909-
display: block;
910-
height: 21vw !important;
911-
line-height: 21vw !important;
915+
word-break: break-word;
912916
}
913917

914918
#pluginsContainer.layout3 .pluginItem .pluginItemDetails {

0 commit comments

Comments
 (0)