apoorvapendse
2025-07-17 09:52:27 +05:30
committed by Tim Abbott
parent ab01079f40
commit 1001c0d60a
3 changed files with 7 additions and 1 deletions

View File

@@ -1256,6 +1256,11 @@ export function set_event_handlers({
if (e.metaKey || e.ctrlKey || e.shiftKey) { if (e.metaKey || e.ctrlKey || e.shiftKey) {
return; return;
} }
if (document.getSelection()?.type === "Range") {
// To avoid the click behavior if a channel name is selected.
e.preventDefault();
return;
}
const stream_id = stream_id_for_elt($(e.target).parents("li.narrow-filter")); const stream_id = stream_id_for_elt($(e.target).parents("li.narrow-filter"));
on_sidebar_channel_click(stream_id, e, show_channel_feed); on_sidebar_channel_click(stream_id, e, show_channel_feed);

View File

@@ -1549,6 +1549,7 @@ li.active-sub-filter {
} }
.subscription_block { .subscription_block {
user-select: text;
grid-template-columns: grid-template-columns:
var(--left-sidebar-toggle-width-offset) var( var(--left-sidebar-toggle-width-offset) var(
--left-sidebar-icon-column-width --left-sidebar-icon-column-width

View File

@@ -2,7 +2,7 @@
<li class="narrow-filter{{#if is_muted}} out_of_home_view{{/if}}" data-stream-id="{{id}}"> <li class="narrow-filter{{#if is_muted}} out_of_home_view{{/if}}" data-stream-id="{{id}}">
<div class="bottom_left_row"> <div class="bottom_left_row">
<a href="{{url}}" class="subscription_block selectable_sidebar_block"> <a href="{{url}}" class="subscription_block selectable_sidebar_block" draggable="false">
<span class="stream-privacy-original-color-{{id}} stream-privacy filter-icon" style="color: {{color}}"> <span class="stream-privacy-original-color-{{id}} stream-privacy filter-icon" style="color: {{color}}">
{{> stream_privacy . }} {{> stream_privacy . }}