mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
show content in middle
This commit is contained in:
@@ -73,6 +73,7 @@ type Props = {
|
|||||||
history: History
|
history: History
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class Permissions extends React.Component<Props> {
|
class Permissions extends React.Component<Props> {
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
const {
|
const {
|
||||||
|
|||||||
@@ -54,6 +54,13 @@ type State = {
|
|||||||
const styles = {
|
const styles = {
|
||||||
iconColor: {
|
iconColor: {
|
||||||
color: "#9a9a9a"
|
color: "#9a9a9a"
|
||||||
|
},
|
||||||
|
centerMiddle: {
|
||||||
|
display: "table-cell",
|
||||||
|
verticalAlign: "middle !important"
|
||||||
|
},
|
||||||
|
columnWidth: {
|
||||||
|
width: "100%"
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -156,18 +163,18 @@ class SinglePermission extends React.Component<Props, State> {
|
|||||||
);
|
);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<tr>
|
<tr className={classes.columnWidth}>
|
||||||
<td>
|
<td className={classes.centerMiddle}>
|
||||||
{iconType} {permission.name}
|
{iconType} {permission.name}
|
||||||
</td>
|
</td>
|
||||||
{roleSelector}
|
{roleSelector}
|
||||||
<td>
|
<td className={classes.centerMiddle}>
|
||||||
<Button
|
<Button
|
||||||
label={t("permission.advanced-button.label")}
|
label={t("permission.advanced-button.label")}
|
||||||
action={this.handleDetailedPermissionsPressed}
|
action={this.handleDetailedPermissionsPressed}
|
||||||
/>
|
/>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td className={classes.centerMiddle}>
|
||||||
<DeletePermissionButton
|
<DeletePermissionButton
|
||||||
permission={permission}
|
permission={permission}
|
||||||
namespace={namespace}
|
namespace={namespace}
|
||||||
|
|||||||
Reference in New Issue
Block a user