From 782ecf85499fcbc44d55798c756f512cd8d4470e Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Mon, 19 Apr 2021 14:32:55 +0200 Subject: show group on hover --- frontend/app/views/page/components/page.editor.js | 2 ++ frontend/app/views/tile/components/tile.form.js | 2 +- .../app/views/tile/forms/tile.form.hyperlink.js | 6 ------ frontend/app/views/tile/forms/tile.form.misc.js | 25 ++++++++++++++++++++-- frontend/app/views/tile/handles/tile.gradient.js | 3 ++- frontend/app/views/tile/handles/tile.image.js | 3 ++- frontend/app/views/tile/handles/tile.link.js | 3 ++- frontend/app/views/tile/handles/tile.text.js | 3 ++- frontend/app/views/tile/handles/tile.video.js | 3 ++- 9 files changed, 36 insertions(+), 14 deletions(-) (limited to 'frontend/app') diff --git a/frontend/app/views/page/components/page.editor.js b/frontend/app/views/page/components/page.editor.js index cd61932..658da2d 100644 --- a/frontend/app/views/page/components/page.editor.js +++ b/frontend/app/views/page/components/page.editor.js @@ -210,6 +210,7 @@ class PageEditor extends Component { onMouseDown={e => this.handleMouseDown(e, tile)} onDoubleClick={e => this.props.pageActions.showEditTileForm(tile.id)} onMouseEnter={e => {}} + onMouseLeave={e => {}} onPlaybackEnded={this.handlePlaybackEnded} /> ) @@ -224,6 +225,7 @@ class PageEditor extends Component { box={currentTile && temporaryTile.id === currentTile.id && currentBox} onMouseDown={e => this.handleMouseDown(e, temporaryTile)} onMouseEnter={e => {}} + onMouseLeave={e => {}} onPlaybackEnded={this.handlePlaybackEnded} /> )} diff --git a/frontend/app/views/tile/components/tile.form.js b/frontend/app/views/tile/components/tile.form.js index 2e6dfef..a3c3131 100644 --- a/frontend/app/views/tile/components/tile.form.js +++ b/frontend/app/views/tile/components/tile.form.js @@ -338,7 +338,7 @@ class TileForm extends Component { pageList={this.state.pageList} popupList={this.state.popupList} cursors={this.state.cursors} /> - +
diff --git a/frontend/app/views/tile/forms/tile.form.hyperlink.js b/frontend/app/views/tile/forms/tile.form.hyperlink.js index f36077d..1d7f22d 100644 --- a/frontend/app/views/tile/forms/tile.form.hyperlink.js +++ b/frontend/app/views/tile/forms/tile.form.hyperlink.js @@ -16,15 +16,9 @@ import { toggleCursorList } from 'app/views/page/page.actions' export default function TileHyperlinkForm({ tile, pageList, popupList, cursors, parent }) { const isExternalLink = tile.target_page_id === EXTERNAL_LINK - // const isPopupLink = ( - // tile.target_page_id === OPEN_POPUP_LINK || - // tile.target_page_id === CLOSE_POPUP_LINK - // ) let cursor - // console.log(tile.settings.cursor, tile.settings.custom_cursor_id) if (tile.settings.cursor === 'custom' && tile.settings.custom_cursor_id) { cursor = cursors[tile.settings.custom_cursor_id] - // console.log(cursor) } return (
diff --git a/frontend/app/views/tile/forms/tile.form.misc.js b/frontend/app/views/tile/forms/tile.form.misc.js index fd72ad3..68b659c 100644 --- a/frontend/app/views/tile/forms/tile.form.misc.js +++ b/frontend/app/views/tile/forms/tile.form.misc.js @@ -5,9 +5,9 @@ import { Select, Checkbox, Slider, } from 'app/common' -import { UNITS } from './tile.constants' +import { UNITS, NO_POPUP } from './tile.constants' -export default function TileMiscForm({ tile, parent }) { +export default function TileMiscForm({ tile, parent, popupList }) { return (
@@ -70,6 +70,7 @@ export default function TileMiscForm({ tile, parent }) {
)} + + {tile.settings.show_popup_on_hover && ( +
+