fix(plugins/music): ellipsis for long track name/artist (close #866)
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
<div class="track">
|
||||
<img src="<%= artwork %>" width="32" height="32" alt=""/>
|
||||
<div class="infos">
|
||||
<div class="name" style="width: <%= large ? '774px' : columns ? '100%' : '387px' %>"><%= name %></div>
|
||||
<div class="name"><%= name %></div>
|
||||
<div class="artist"><%= artist %></div>
|
||||
<% if (plugins.music.played_at && played_at) { %>
|
||||
<div class="played-at">Played at <%= played_at %></div>
|
||||
|
||||
@@ -480,6 +480,9 @@
|
||||
line-height: 14px;
|
||||
height: 14px;
|
||||
font-weight: 600;
|
||||
}
|
||||
.track .name, .track .artist {
|
||||
width: 387px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
@@ -495,9 +498,6 @@
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
svg.large .track {
|
||||
width: 50%;
|
||||
}
|
||||
|
||||
/* Posts plugin */
|
||||
.post {
|
||||
|
||||
Reference in New Issue
Block a user