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
commit ef4915c656
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 3 deletions

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
}

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>';

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;