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