Use class instead of style object
parent
65706bb073
commit
3c4c0e2e21
|
@ -52,15 +52,6 @@ const Header = ({
|
||||||
onAddRetentionPolicy,
|
onAddRetentionPolicy,
|
||||||
onDatabaseDeleteConfirm,
|
onDatabaseDeleteConfirm,
|
||||||
}) => {
|
}) => {
|
||||||
const confirmStyle = {
|
|
||||||
display: 'flex',
|
|
||||||
justifyContent: 'space-between',
|
|
||||||
alignItems: 'center',
|
|
||||||
}
|
|
||||||
const confirmInputStyle = {
|
|
||||||
flex: '1 0 0',
|
|
||||||
marginRight: '4px',
|
|
||||||
}
|
|
||||||
const buttons = (
|
const buttons = (
|
||||||
<div className="text-right db-manager-header--actions">
|
<div className="text-right db-manager-header--actions">
|
||||||
<button
|
<button
|
||||||
|
@ -90,7 +81,7 @@ const Header = ({
|
||||||
}
|
}
|
||||||
|
|
||||||
const deleteConfirmation = (
|
const deleteConfirmation = (
|
||||||
<div style={confirmStyle}>
|
<div className="admin-table--delete-db">
|
||||||
<input
|
<input
|
||||||
className="form-control input-xs"
|
className="form-control input-xs"
|
||||||
name="name"
|
name="name"
|
||||||
|
@ -102,7 +93,6 @@ const Header = ({
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
autoComplete={false}
|
autoComplete={false}
|
||||||
spellCheck={false}
|
spellCheck={false}
|
||||||
style={confirmInputStyle}
|
|
||||||
/>
|
/>
|
||||||
<ConfirmButtons
|
<ConfirmButtons
|
||||||
item={database}
|
item={database}
|
||||||
|
|
|
@ -113,6 +113,15 @@ pre.admin-table--query {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
.admin-table--delete-db {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
> .form-control {
|
||||||
|
flex: 1 0 0;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Database Manager
|
Database Manager
|
||||||
|
|
Loading…
Reference in New Issue