Use destructive variant for delete worktree and align empty checks (#5448)
- Change the delete worktree button in MergedReviewActions to a destructive variant to make the workspace deletion more obvious. - Remove flex centering layout from the empty checks container, using left padding instead to align with other sidebar items.
This commit is contained in:
@@ -62,7 +62,7 @@ export function MergedReviewActions({
|
||||
return (
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
variant="destructive"
|
||||
size="xs"
|
||||
className="cursor-pointer text-[11px] hover:cursor-pointer disabled:opacity-50 disabled:cursor-not-allowed"
|
||||
onClick={onDeleteWorktree}
|
||||
|
||||
@@ -1226,7 +1226,7 @@ export function ChecksList({
|
||||
<LoaderCircle className="size-5 animate-spin text-muted-foreground" />
|
||||
</div>
|
||||
) : checks.length === 0 ? (
|
||||
<div className="flex items-center justify-center py-8 text-[11px] text-muted-foreground">
|
||||
<div className="px-3 py-8 text-[11px] text-muted-foreground">
|
||||
{translate(
|
||||
'auto.components.right.sidebar.checks.panel.content.991f50c7e4',
|
||||
'No checks configured'
|
||||
|
||||
Reference in New Issue
Block a user