mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-31 00:16:47 +01:00
Fix: Toggle name length has visual issues
This commit is contained in:
parent
24b0358113
commit
d06be100d6
5
frontend/src/component/common/common.scss
Normal file
5
frontend/src/component/common/common.scss
Normal file
@ -0,0 +1,5 @@
|
||||
.truncate {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
@ -1,4 +1,7 @@
|
||||
const React = require('react');
|
||||
import styles from './common.scss';
|
||||
|
||||
|
||||
const {
|
||||
List, ListItem, ListItemContent,
|
||||
Button, Icon,
|
||||
@ -57,7 +60,7 @@ export const SwitchWithLabel = ({ onChange, children, checked }) => (
|
||||
);
|
||||
|
||||
export const TogglesLinkList = ({ toggles }) => (
|
||||
<List style={{ textAlign: 'left' }}>
|
||||
<List style={{ textAlign: 'left' }} className={styles.truncate}>
|
||||
{toggles.length > 0 && toggles.map(({ name, description = '-', icon = 'toggle' }) => (
|
||||
<ListItem twoLine key={name}>
|
||||
<ListItemContent avatar={icon} subtitle={description}>
|
||||
|
Loading…
Reference in New Issue
Block a user