Browse Source

Make link in search clickable everywhere

master
morethanwords 3 years ago
parent
commit
6b90f05d68
  1. 4
      src/components/appSearchSuper..ts
  2. 12
      src/scss/partials/_rightSidebar.scss

4
src/components/appSearchSuper..ts

@ -483,7 +483,7 @@ export default class AppSearchSuper { @@ -483,7 +483,7 @@ export default class AppSearchSuper {
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.inputMessagesFilterUrl, (e) => {
/* attachClickEvent(this.tabs.inputMessagesFilterUrl, (e) => {
const target = e.target as HTMLElement;
if(target.tagName === 'A') {
return;
@ -493,7 +493,7 @@ export default class AppSearchSuper { @@ -493,7 +493,7 @@ export default class AppSearchSuper {
const a = findUpClassName(target, 'row').querySelector('.anchor-url:last-child') as HTMLAnchorElement;
a.click();
} catch(err) {}
});
}); */
this.mediaTab = this.mediaTabs[0];

12
src/scss/partials/_rightSidebar.scss

@ -478,7 +478,14 @@ @@ -478,7 +478,14 @@
}
}
/* .anchor-url {
a:not(:last-child) {
position: relative;
z-index: 2;
}
.anchor-url:last-child {
position: unset;
&:before {
position: absolute;
top: 0;
@ -487,8 +494,9 @@ @@ -487,8 +494,9 @@
left: 0;
content: " ";
cursor: pointer;
z-index: 1;
}
} */
}
.media-photo {
object-fit: cover;

Loading…
Cancel
Save