Skip to content

Commit

Permalink
Hide icon names in ChatReactionIcons (#6433)
Browse files Browse the repository at this point in the history
* Hide icon names in ChatReactionIcons

* Replace margin
  • Loading branch information
ahuang11 authored Mar 5, 2024
1 parent 2d37f33 commit 6608244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions panel/chat/icon.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def _render_icons(self):
icon=icon,
active_icon=active_icon,
value=option in self.value,
name=option,
margin=0,
)
icon._reaction = option
icon.param.watch(self._update_value, "value")
self._rendered_icons[option] = icon
self._composite[:] = list(self._rendered_icons.values())
Expand All @@ -82,7 +82,7 @@ def _update_active_icons(self):
icon.active_icon = self.active_icons.get(option, "")

def _update_value(self, event):
reaction = event.obj.name
reaction = event.obj._reaction
icon_value = event.new
reactions = self.value.copy()
if icon_value and reaction not in self.value:
Expand Down

0 comments on commit 6608244

Please sign in to comment.