Merge pull request #1940 from influxdata/fix-duration-cell-width

Fix Sizing of Table in Admin > Databases
pull/10616/head
Alex Paxton 2017-08-29 18:04:15 -07:00 committed by GitHub
commit 04769c2960
3 changed files with 6 additions and 3 deletions

View File

@ -10,6 +10,7 @@
### UI Improvements
1. [#1933](https://github.com/influxdata/chronograf/pull/1933): Use line-stacked graph type for memory information - thank you, @Joxit!
1. [#1940](https://github.com/influxdata/chronograf/pull/1940): Improve cell sizes in Admin Database tables
1. [#1942](https://github.com/influxdata/chronograf/pull/1942): Polish appearance of optional alert parameters in Kapacitor rule builder
## v1.3.7.0 [2017-08-23]

View File

@ -140,7 +140,7 @@ class DatabaseRow extends Component {
if (isEditing) {
return (
<tr>
<td>
<td style={{width: `${DATABASE_TABLE.colRetentionPolicy}px`}}>
{isNew
? <input
className="form-control input-xs"
@ -161,7 +161,7 @@ class DatabaseRow extends Component {
name="name"
type="text"
defaultValue={formattedDuration}
placeholder="How long should Data last"
placeholder="INF, 5m, 1d etc"
onKeyDown={this.handleKeyDown}
ref={r => (this.duration = r)}
autoFocus={!isNew}

View File

@ -52,7 +52,9 @@ const DatabaseTable = ({
<table className="table v-center table-highlight">
<thead>
<tr>
<th>Retention Policy</th>
<th style={{width: `${DATABASE_TABLE.colRetentionPolicy}px`}}>
Retention Policy
</th>
<th style={{width: `${DATABASE_TABLE.colDuration}px`}}>
Duration
</th>