@@ -24,7 +24,6 @@ import {
2424} from "../conversations/PinnedConversationOrder" ;
2525import {
2626 ROW_ACTION_BUTTON_CLASS ,
27- ROW_ACTIONS_FADE_CLASS ,
2827 ROW_ACTIONS_REVEAL_CLASS ,
2928} from "../conversations/sidebarRowActions" ;
3029import { useInboxRowActions } from "../conversations/useInboxRowActions" ;
@@ -54,7 +53,7 @@ function InFlightRow(props: {
5453 < ContextMenuTrigger
5554 { ...browserMenuOnLinks }
5655 className = { cn (
57- "group relative list-none [--row-actions-width:1.25rem] " ,
56+ "group relative list-none" ,
5857 drag ?. dragging && "opacity-40" ,
5958 ) }
6059 onKeyDown = { drag ?. onKeyDown }
@@ -66,7 +65,13 @@ function InFlightRow(props: {
6665 aria-current = { props . selected ? "page" : undefined }
6766 aria-keyshortcuts = { drag ? "Alt+ArrowUp Alt+ArrowDown" : undefined }
6867 className = { cn (
69- paneEntryClass ( props . selected ? "page" : undefined , props . phone ) ,
68+ // The state sits on the right, as on a Space row, so the title
69+ // takes the icon column.
70+ paneEntryClass (
71+ props . selected ? "page" : undefined ,
72+ props . phone ,
73+ false ,
74+ ) ,
7075 // Phones always show the `⋯`, so the title stops before it.
7176 "max-sm:pr-10" ,
7277 // The row shows which Conversation its open menu acts on.
@@ -79,23 +84,18 @@ function InFlightRow(props: {
7984 draggable = { drag ? false : undefined }
8085 to = { conversationPath ( conversation . id ) }
8186 >
82- < ConversationStateIcon
83- className = "justify-self-center"
84- state = { conversationDisplayState ( conversation ) }
85- />
8687 < span
87- className = { cn (
88- fadeOverflowClass ,
89- ROW_ACTIONS_FADE_CLASS ,
90- // The same fade while the `⋯` menu is open. Tailwind needs the
91- // whole class written out.
92- "sm:group-has-data-popup-open:[mask-image:linear-gradient(to_left,transparent_var(--row-actions-width),black_calc(var(--row-actions-width)+2rem))]" ,
93- "text-dashboard-text" ,
94- ) }
88+ className = { cn ( fadeOverflowClass , "text-dashboard-text" ) }
9589 ref = { fadeWhenOverflowing }
9690 >
9791 { conversation . displayTitle }
9892 </ span >
93+ { /* The `⋯` takes the state's place while it shows. Phones show
94+ both. */ }
95+ < ConversationStateIcon
96+ className = "sm:group-focus-within:invisible sm:group-hover:invisible sm:group-has-data-popup-open:invisible"
97+ state = { conversationDisplayState ( conversation ) }
98+ />
9999 </ Link >
100100 < DropdownMenu modal = { false } onOpenChange = { actions . onMenuOpenChange } >
101101 < DropdownMenuTrigger
0 commit comments