refactor: update checkbox classes in DocumentsTableShell to use 'shrink-0' for consistent styling

This commit is contained in:
Anish Sarkar 2026-03-22 19:53:57 +05:30
parent 5c598e8588
commit 64a83f7ccc

View file

@ -498,7 +498,7 @@ export function DocumentsTableShell({
checked={allMentionedOnPage || (someMentionedOnPage && "indeterminate")} checked={allMentionedOnPage || (someMentionedOnPage && "indeterminate")}
onCheckedChange={(v) => toggleAll(!!v)} onCheckedChange={(v) => toggleAll(!!v)}
aria-label={hasChatMode ? "Toggle all for chat" : "Select all"} aria-label={hasChatMode ? "Toggle all for chat" : "Select all"}
className="border-foreground data-[state=checked]:bg-primary data-[state=checked]:border-primary" className="shrink-0"
/> />
</div> </div>
</TableHead> </TableHead>
@ -650,7 +650,7 @@ export function DocumentsTableShell({
checked={isMentioned} checked={isMentioned}
onCheckedChange={() => handleRowToggle()} onCheckedChange={() => handleRowToggle()}
aria-label="Remove from chat" aria-label="Remove from chat"
className="border-foreground data-[state=checked]:bg-primary data-[state=checked]:border-primary" className="shrink-0"
/> />
); );
} }
@ -664,7 +664,7 @@ export function DocumentsTableShell({
checked={isMentioned} checked={isMentioned}
onCheckedChange={() => handleRowToggle()} onCheckedChange={() => handleRowToggle()}
aria-label="Add to chat" aria-label="Add to chat"
className="border-foreground data-[state=checked]:bg-primary data-[state=checked]:border-primary" className="shrink-0"
/> />
</span> </span>
</> </>
@ -675,7 +675,7 @@ export function DocumentsTableShell({
checked={isMentioned} checked={isMentioned}
onCheckedChange={() => handleRowToggle()} onCheckedChange={() => handleRowToggle()}
aria-label={isMentioned ? "Remove from chat" : "Add to chat"} aria-label={isMentioned ? "Remove from chat" : "Add to chat"}
className="border-foreground data-[state=checked]:bg-primary data-[state=checked]:border-primary" className="shrink-0"
/> />
); );
})()} })()}
@ -888,7 +888,7 @@ export function DocumentsTableShell({
checked={isMentioned} checked={isMentioned}
onCheckedChange={() => handleCardClick()} onCheckedChange={() => handleCardClick()}
aria-label={isMentioned ? "Remove from chat" : "Add to chat"} aria-label={isMentioned ? "Remove from chat" : "Add to chat"}
className="border-foreground data-[state=checked]:bg-primary data-[state=checked]:border-primary" className="shrink-0"
/> />
) : ( ) : (
<StatusIndicator status={doc.status} /> <StatusIndicator status={doc.status} />