Make link in search clickable everywhere
This commit is contained in:
parent
a6adf2c3df
commit
6b90f05d68
@ -483,7 +483,7 @@ export default class AppSearchSuper {
|
|||||||
attachClickEvent(this.tabs.inputMessagesFilterPhotoVideo, onMediaClick.bind(null, 'grid-item', 'grid-item', 'inputMessagesFilterPhotoVideo'));
|
attachClickEvent(this.tabs.inputMessagesFilterPhotoVideo, onMediaClick.bind(null, 'grid-item', 'grid-item', 'inputMessagesFilterPhotoVideo'));
|
||||||
attachClickEvent(this.tabs.inputMessagesFilterDocument, onMediaClick.bind(null, 'document-with-thumb', 'media-container', 'inputMessagesFilterDocument'));
|
attachClickEvent(this.tabs.inputMessagesFilterDocument, onMediaClick.bind(null, 'document-with-thumb', 'media-container', 'inputMessagesFilterDocument'));
|
||||||
|
|
||||||
attachClickEvent(this.tabs.inputMessagesFilterUrl, (e) => {
|
/* attachClickEvent(this.tabs.inputMessagesFilterUrl, (e) => {
|
||||||
const target = e.target as HTMLElement;
|
const target = e.target as HTMLElement;
|
||||||
if(target.tagName === 'A') {
|
if(target.tagName === 'A') {
|
||||||
return;
|
return;
|
||||||
@ -493,7 +493,7 @@ export default class AppSearchSuper {
|
|||||||
const a = findUpClassName(target, 'row').querySelector('.anchor-url:last-child') as HTMLAnchorElement;
|
const a = findUpClassName(target, 'row').querySelector('.anchor-url:last-child') as HTMLAnchorElement;
|
||||||
a.click();
|
a.click();
|
||||||
} catch(err) {}
|
} catch(err) {}
|
||||||
});
|
}); */
|
||||||
|
|
||||||
this.mediaTab = this.mediaTabs[0];
|
this.mediaTab = this.mediaTabs[0];
|
||||||
|
|
||||||
|
@ -478,7 +478,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .anchor-url {
|
a:not(:last-child) {
|
||||||
|
position: relative;
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.anchor-url:last-child {
|
||||||
|
position: unset;
|
||||||
|
|
||||||
&:before {
|
&:before {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
@ -487,8 +494,9 @@
|
|||||||
left: 0;
|
left: 0;
|
||||||
content: " ";
|
content: " ";
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} */
|
|
||||||
|
|
||||||
.media-photo {
|
.media-photo {
|
||||||
object-fit: cover;
|
object-fit: cover;
|
||||||
|
Loading…
Reference in New Issue
Block a user