diff --git a/composer.json b/composer.json index 8e16393..9686772 100644 --- a/composer.json +++ b/composer.json @@ -3,7 +3,7 @@ "description": "Wordpress plugin for tawk.to", "type": "project", "license": "GPL-3.0", - "version": "0.7.1", + "version": "0.7.2", "require": { "tawk/url-utils": "2.0.1" }, diff --git a/package.json b/package.json index 4d70f03..6d710d2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tawk-wordpress", - "version": "0.7.1", + "version": "0.7.2", "description": "tawk.to wordpress plugin", "main": "index.js", "directories": { diff --git a/tawkto/assets/css/tawk.admin.css b/tawkto/assets/css/tawk.admin.css index 4d98470..2c4b1eb 100644 --- a/tawkto/assets/css/tawk.admin.css +++ b/tawkto/assets/css/tawk.admin.css @@ -264,6 +264,11 @@ a.tawk-link:hover { top: 5px; } +.tooltip.reverse .tooltiptext { + top: unset; + bottom: 5px; +} + .tooltip .tooltiptext::before { content: ""; display: block; @@ -278,6 +283,13 @@ a.tawk-link:hover { left: 5px; } +.tooltip.reverse .tooltiptext::before { + top: unset; + border-bottom: unset; + bottom: -5px; + border-top: 5px solid #545454; +} + .tooltip:hover .tooltiptext { visibility: visible; } diff --git a/tawkto/assets/js/tawk.admin.js b/tawkto/assets/js/tawk.admin.js index 4d8572d..22e4f03 100644 --- a/tawkto/assets/js/tawk.admin.js +++ b/tawkto/assets/js/tawk.admin.js @@ -62,6 +62,16 @@ jQuery( if ( jQuery( '#exclude-url' ).prop( 'checked' ) ) { jQuery( '#exlucded-urls-container' ).fadeIn(); } + + jQuery( '.tooltip' ).on( 'mouseenter', function() { + var tooltipTextHeight = jQuery( this ).find( '.tooltiptext' ).height(); + if ( jQuery( '#url-exclusion' ).height() > tooltipTextHeight ) { + jQuery( this ).removeClass( 'reverse' ); + return; + } + + jQuery( this ).addClass( 'reverse' ); + }); } ); diff --git a/tawkto/readme.txt b/tawkto/readme.txt index 2fc2304..1681aab 100644 --- a/tawkto/readme.txt +++ b/tawkto/readme.txt @@ -3,8 +3,8 @@ Contributors: tawkto Tags: tawk,tawk.to,tawkto,chat,free chat,livechat,chat widget,plugin,chat for web,chat online,chat software,free live chat,IM Chat,,live chat,live support,live web chat,online chat,online support,snapengage,wordpress chat,wordpress live chat Requires at least: 2.7 Requires PHP: 5.6 -Tested up to: 5.9 -Stable tag: 0.7.1 +Tested up to: 6.0 +Stable tag: 0.7.2 (OFFICIAL tawk.to plugin) Instantly chat with visitors on your website with the free tawk.to chat widget. Website: [http://tawk.to](http://tawk.to) @@ -69,6 +69,10 @@ Note: You will need a free tawk.to account: [Create one for free here!](https:// == Changelog == += 0.7.2 = +* Fixed pattern matching tooltip display. +* Supported version bump 6.0. + = 0.7.1 = * Fixed compatibility issue on PHP versions >= 5.6. diff --git a/tawkto/tawkto.php b/tawkto/tawkto.php index 7124c79..c3b1ec7 100644 --- a/tawkto/tawkto.php +++ b/tawkto/tawkto.php @@ -6,7 +6,7 @@ * Plugin Name: Tawk.to Live Chat * Plugin URI: https://www.tawk.to * Description: Embeds Tawk.to live chat widget to your site - * Version: 0.7.1 + * Version: 0.7.2 * Author: Tawkto * Text Domain: tawk-to-live-chat **/ @@ -162,7 +162,7 @@ public function tawk_admin_notice() { if ( true === $settings_updated ) { ?>