mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-17 21:26:22 -04:00
Compare commits
1 Commits
zeus
...
sonarr-pul
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
676dcbae0e |
@@ -36,3 +36,9 @@
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.label {
|
||||||
|
composes: label from '~Components/Label.css';
|
||||||
|
|
||||||
|
max-width: 100%;
|
||||||
|
}
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
|
import MiddleTruncate from 'react-middle-truncate';
|
||||||
import Card from 'Components/Card';
|
import Card from 'Components/Card';
|
||||||
import Label from 'Components/Label';
|
import Label from 'Components/Label';
|
||||||
import IconButton from 'Components/Link/IconButton';
|
import IconButton from 'Components/Link/IconButton';
|
||||||
@@ -124,10 +125,15 @@ class CustomFormat extends Component {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<Label
|
<Label
|
||||||
|
className={styles.label}
|
||||||
key={index}
|
key={index}
|
||||||
kind={kind}
|
kind={kind}
|
||||||
>
|
>
|
||||||
{item.name}
|
<MiddleTruncate
|
||||||
|
text={item.name}
|
||||||
|
start={10}
|
||||||
|
end={14}
|
||||||
|
/>
|
||||||
</Label>
|
</Label>
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user