Skip to content

Commit 6488f22

Browse files
authored
🤖 fix: align X button and status row with runtime badge (#1040)
_Generated with `mux`_ Fixes vertical alignment between the X (remove) button and runtime badge, and horizontal alignment of the status row. **Changes:** - X button: add `inline-flex items-center leading-none` for vertical centering with runtime badge - Status row: add `ml-[18px]` to align with badge column (skipping X column) **Visual coverage:** `RuntimeBadgeVariations` story
1 parent 07672f2 commit 6488f22

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/browser/components/WorkspaceListItem.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const WorkspaceListItemInner: React.FC<WorkspaceListItemProps> = ({
152152
<Tooltip>
153153
<TooltipTrigger asChild>
154154
<button
155-
className="text-muted hover:text-foreground cursor-pointer border-none bg-transparent p-0 text-base opacity-0 transition-colors duration-200"
155+
className="text-muted hover:text-foreground inline-flex cursor-pointer items-center border-none bg-transparent p-0 text-base leading-none opacity-0 transition-colors duration-200"
156156
onClick={(e) => {
157157
e.stopPropagation();
158158
void onRemoveWorkspace(workspaceId, e.currentTarget);
@@ -217,7 +217,7 @@ const WorkspaceListItemInner: React.FC<WorkspaceListItemProps> = ({
217217
)}
218218
</div>
219219
{!isCreating && (
220-
<div className="min-w-0">
220+
<div className="ml-[18px] min-w-0">
221221
{isDeleting ? (
222222
<div className="text-muted flex min-w-0 items-center gap-1.5 text-xs">
223223
<span className="-mt-0.5 shrink-0 text-[10px]">🗑️</span>

0 commit comments

Comments
 (0)