Only apply the "Don't/Watch this" bridge target for the text variant (for the overflow on the board perma)

This commit is contained in:
Jay Ohms
2026-01-08 22:46:47 -05:00
parent 2e55f67d9b
commit 9ac34f8882
+1 -1
View File
@@ -49,7 +49,7 @@ module AccessesHelper
aria: { labelledby: dom_id(board, :involvement_label) },
title: (label_text if icon_only),
class: class_names("btn", { "btn--reversed": access.watching? && icon_only }),
data: { bridge__overflow_menu_target: "item" }) do
data: !icon_only && { bridge__overflow_menu_target: "item" }) do
icon_tag("notification-bell-#{icon_only ? 'reverse-' : nil}#{access.involvement.dasherize}") +
tag.span(label_text, class: class_names("txt-nowrap txt-uppercase", "for-screen-reader": icon_only), id: dom_id(board, :involvement_label))
end