Merge pull request #342 from grafixeyehero/class

Add span class to fix a margin issue with some icons
This commit is contained in:
Anthony Lavado
2019-05-31 19:14:05 -04:00
committed by GitHub
3 changed files with 16 additions and 3 deletions
+15 -1
View File
@@ -8,4 +8,18 @@
.homeLibraryButton {
width: 46% !important;
}
}
}
.homeLibraryIcon {
margin-left: .5em;
margin-right: .5em;
-webkit-flex-shrink: 0;
flex-shrink: 0
}
.homeLibraryText {
white-space: nowrap;
-o-text-overflow: ellipsis;
text-overflow: ellipsis;
overflow: hidden
}
+1 -1
View File
@@ -235,7 +235,7 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
break;
}
html += '<a is="emby-linkbutton" href="' + appRouter.getRouteUrl(item) + '" class="raised homeLibraryButton"><i class="md-icon">' + icon + '</i><span>' + item.Name + '</span></a>';
html += '<a is="emby-linkbutton" href="' + appRouter.getRouteUrl(item) + '" class="raised homeLibraryButton"><i class="md-icon homeLibraryIcon">' + icon + '</i><span class="homeLibraryText">' + item.Name + '</span></a>';
}
html += '</div>';
-1
View File
@@ -12,7 +12,6 @@
letter-spacing: normal;
text-transform: none;
display: inline-block;
margin-right: 4px;
white-space: nowrap;
word-wrap: normal;
direction: ltr;