mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-05 20:34:07 +02:00
Fix link expansion & tooltips not working with long domains (ellipsis in front)
Closes #172
This commit is contained in:
parent
9cc1a11bef
commit
934cba7251
Resources/Scripts
@ -375,7 +375,7 @@
|
|||||||
mouseenter: function(){
|
mouseenter: function(){
|
||||||
let me = $(this);
|
let me = $(this);
|
||||||
let text = me.text();
|
let text = me.text();
|
||||||
return if text.charCodeAt(text.length-1) !== 8230; // horizontal ellipsis
|
return if text.charCodeAt(text.length-1) !== 8230 && text.charCodeAt(0) !== 8230; // horizontal ellipsis
|
||||||
|
|
||||||
if ($TDX.expandLinksOnHover){
|
if ($TDX.expandLinksOnHover){
|
||||||
tooltipTimer = window.setTimeout(function(){
|
tooltipTimer = window.setTimeout(function(){
|
||||||
|
@ -52,7 +52,7 @@
|
|||||||
return if !url;
|
return if !url;
|
||||||
|
|
||||||
var text = me.textContent;
|
var text = me.textContent;
|
||||||
return if text.charCodeAt(text.length-1) !== 8230; // horizontal ellipsis
|
return if text.charCodeAt(text.length-1) !== 8230 && text.charCodeAt(0) !== 8230; // horizontal ellipsis
|
||||||
|
|
||||||
if ($TDX.expandLinksOnHover){
|
if ($TDX.expandLinksOnHover){
|
||||||
tooltipTimer = window.setTimeout(function(){
|
tooltipTimer = window.setTimeout(function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user