Skip to content

Commit d9d1968

Browse files
korutxclaude
andcommitted
fix(whatsapp): hide the group-by label so the list header doesn't wrap
The inline "Group by" text wrapped to two lines and cramped the 340px list header. Keep it screen-reader-only (sr-only) — the select value already reads the current grouping. No behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GAzRnBWEgiTESmwzRNLMzu
1 parent 795caa3 commit d9d1968

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

turbo-repo/apps/app/src/features/whatsapp-inbox/components/conversation-list.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,10 @@ export default function ConversationList({
6767
<h2 className="text-sm font-semibold text-gray-900 dark:text-white uppercase tracking-wide">
6868
{tr("listTitle", dict)}
6969
</h2>
70-
<label className="flex items-center gap-1.5 text-xs text-gray-500 dark:text-gray-400">
71-
<span className="sr-only sm:not-sr-only">{tr("groupBy", dict)}</span>
70+
<label className="flex items-center text-xs text-gray-500 dark:text-gray-400">
71+
{/* Label kept for screen readers only — the select value already reads the current grouping,
72+
and an inline label wraps/cramps the 340px list header. */}
73+
<span className="sr-only">{tr("groupBy", dict)}</span>
7274
<select
7375
value={groupBy}
7476
onChange={(e) => onGroupByChange(e.target.value as GroupBy)}

0 commit comments

Comments
 (0)