Move inbox read action beside tabs

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
Dotta
2026-03-11 21:43:16 -05:00
parent ea54c018ad
commit cde3a8c604

View File

@@ -545,7 +545,8 @@ export function Inbox() {
return ( return (
<div className="space-y-6"> <div className="space-y-6">
<div className="flex flex-col gap-3 lg:flex-row lg:items-center lg:justify-between"> <div className="flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between">
<div className="flex flex-wrap items-center gap-2">
<Tabs value={tab} onValueChange={(value) => navigate(`/inbox/${value}`)}> <Tabs value={tab} onValueChange={(value) => navigate(`/inbox/${value}`)}>
<PageTabBar <PageTabBar
items={[ items={[
@@ -559,22 +560,22 @@ export function Inbox() {
/> />
</Tabs> </Tabs>
<div className="flex flex-wrap items-center gap-2">
{canMarkAllRead && ( {canMarkAllRead && (
<Button <Button
type="button" type="button"
variant="outline" variant="outline"
size="sm" size="sm"
className="h-8" className="h-8 shrink-0"
onClick={() => markAllReadMutation.mutate(unreadIssueIds)} onClick={() => markAllReadMutation.mutate(unreadIssueIds)}
disabled={markAllReadMutation.isPending} disabled={markAllReadMutation.isPending}
> >
{markAllReadMutation.isPending ? "Marking…" : "Mark all as read"} {markAllReadMutation.isPending ? "Marking…" : "Mark all as read"}
</Button> </Button>
)} )}
</div>
{tab === "all" && ( {tab === "all" && (
<> <div className="flex flex-wrap items-center gap-2 sm:justify-end">
<Select <Select
value={allCategoryFilter} value={allCategoryFilter}
onValueChange={(value) => setAllCategoryFilter(value as InboxCategoryFilter)} onValueChange={(value) => setAllCategoryFilter(value as InboxCategoryFilter)}
@@ -607,9 +608,8 @@ export function Inbox() {
</SelectContent> </SelectContent>
</Select> </Select>
)} )}
</>
)}
</div> </div>
)}
</div> </div>
{approvalsError && <p className="text-sm text-destructive">{approvalsError.message}</p>} {approvalsError && <p className="text-sm text-destructive">{approvalsError.message}</p>}