Add maxWidth and ellipsis to music list item name
This commit is contained in:
parent
49c5360680
commit
1fec1bb2f6
@ -247,6 +247,7 @@ export default class MusicList {
|
||||
alignItems: 'center',
|
||||
justifyContent: 'space-between',
|
||||
gap: '.25rem',
|
||||
maxWidth: '100%',
|
||||
},
|
||||
children: [
|
||||
...(item.picture ? [Img({
|
||||
@ -254,6 +255,12 @@ export default class MusicList {
|
||||
style: { width: '2em', height: '2em', borderRadius: '.25em' }
|
||||
})] : []),
|
||||
Span({
|
||||
style: {
|
||||
flex: 1,
|
||||
textOverflow: 'ellipsis',
|
||||
whiteSpace: 'nowrap',
|
||||
overflowX: 'hidden',
|
||||
},
|
||||
title: `${item.name} - ${bytesToSize(item.size)} - ${item.type}`,
|
||||
textContent: `${item.name} - ${bytesToSize(item.size)}`,
|
||||
onclick: event => {
|
||||
|
Loading…
Reference in New Issue
Block a user