about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2022-10-10 13:51:16 +0900
committerGitHub <noreply@github.com>2022-10-10 06:51:16 +0200
commit3eef8a7a81512f283300d2371d5b743611cb0d27 (patch)
tree23864a3bba5d0f8dc476254ff1f3f5fede9082a0 /app
parent5f79200a5e39a5bf243068d040def2af35f211fc (diff)
Fix `ColumnLink` labels not disappearing in mobile UI (#19334)
Diffstat (limited to 'app')
-rw-r--r--app/javascript/mastodon/features/ui/components/column_link.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/javascript/mastodon/features/ui/components/column_link.js b/app/javascript/mastodon/features/ui/components/column_link.js
index 42da05c0a..8eebbf526 100644
--- a/app/javascript/mastodon/features/ui/components/column_link.js
+++ b/app/javascript/mastodon/features/ui/components/column_link.js
@@ -13,7 +13,7 @@ const ColumnLink = ({ icon, text, to, href, method, badge, transparent, ...other
     return (
       <a href={href} className={className} data-method={method} title={text} {...other}>
         {iconElement}
-        {text}
+        <span>{text}</span>
         {badgeElement}
       </a>
     );
@@ -21,7 +21,7 @@ const ColumnLink = ({ icon, text, to, href, method, badge, transparent, ...other
     return (
       <NavLink to={to} className={className} title={text} {...other}>
         {iconElement}
-        {text}
+        <span>{text}</span>
         {badgeElement}
       </NavLink>
     );