mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
dashfolders: Add min-width to align icons in permissions list and some margin between icon and text #10275
This commit is contained in:
@@ -13,7 +13,7 @@ export default class DisabledPermissionListItem extends Component<IProps, any> {
|
||||
return (
|
||||
<tr className="gf-form-disabled">
|
||||
<td style={{ width: '100%' }}>
|
||||
<i className={item.icon} />
|
||||
<i className={`fa--permissions-list ${item.icon}`} />
|
||||
<span dangerouslySetInnerHTML={{ __html: item.nameHtml }} />
|
||||
</td>
|
||||
<td />
|
||||
|
||||
@@ -20,7 +20,7 @@ export default observer(({ item, removeItem, permissionChanged, itemIndex, folde
|
||||
return (
|
||||
<tr className={setClassNameHelper(item.inherited)}>
|
||||
<td style={{ width: '100%' }}>
|
||||
<i className={item.icon} />
|
||||
<i className={`fa--permissions-list ${item.icon}`} />
|
||||
<span dangerouslySetInnerHTML={{ __html: item.nameHtml }} />
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@@ -198,3 +198,8 @@
|
||||
background-image: url('../img/icons_dark_theme/icon_question.svg');
|
||||
}
|
||||
}
|
||||
|
||||
.fa--permissions-list {
|
||||
min-width: 20px;
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user