diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2021-03-16 14:43:00 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2021-03-16 14:43:00 +0100 |
| commit | 6e18c6e4ef6344f92fed99dad9c83484487c32d7 (patch) | |
| tree | 03bd8a0be46d4bc8ce1a0bf06cff5fbab5f9c8a0 /frontend/app/views/page/components/tile.form.js | |
| parent | 35a5ebebc2e3c3535cbef00fab08b5fe43bebe85 (diff) | |
add units to links
Diffstat (limited to 'frontend/app/views/page/components/tile.form.js')
| -rw-r--r-- | frontend/app/views/page/components/tile.form.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/app/views/page/components/tile.form.js b/frontend/app/views/page/components/tile.form.js index a9f34a7..3e31758 100644 --- a/frontend/app/views/page/components/tile.form.js +++ b/frontend/app/views/page/components/tile.form.js @@ -113,6 +113,7 @@ const newText = (data) => ({ background_color: 'transparent', width: 0, height: 0, + units: 'px', external_link_url: "", cursor: 'hand_up', }, @@ -126,6 +127,7 @@ const newLink = (data) => ({ ...newPosition({ width: 100, height: 100, }), external_link_url: "", cursor: 'hand_up', + units: 'px', }, type: 'link', target_page_id: null, @@ -662,6 +664,16 @@ class TileForm extends Component { autoComplete="off" /> </div> + <div className='row pair'> + <TextInput + title="Units" + name="units" + data={temporaryTile.settings} + error={errorFields.has('units')} + onChange={this.handleSettingsChange.bind(this)} + autoComplete="off" + /> + </div> </div> ) } |
