aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
authorGravatar maTh <1645099+math-GH@users.noreply.github.com> 2024-04-25 08:45:59 +0200
committerGravatar GitHub <noreply@github.com> 2024-04-25 08:45:59 +0200
commitaac3b21a8b4fd1a2f351a63fdb70d39ac2851921 (patch)
treecc87dac0240cbd64da786136b399eca0af920042 /p/scripts
parent7b922668551f5dcf99a79c474a09103e78e4c703 (diff)
Fix: overflow expanding title in entry header (#6373)
* change HTML structure * CSS
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 3d88a79e5..2ed9bc710 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1081,7 +1081,7 @@ function init_stream(stream) {
return true;
}
- el = ev.target.closest('.item.title > a');
+ el = ev.target.closest('.item .title > a');
if (el) { // Allow default control/command-click behaviour such as open in background-tab
return ev.ctrlKey || ev.metaKey;
}
@@ -1189,7 +1189,7 @@ function init_stream(stream) {
return;
}
- let el = ev.target.closest('.item.title > a');
+ let el = ev.target.closest('.item .title > a');
if (el) {
if (ev.which == 1) {
if (ev.ctrlKey) { // Control+click