Skip to content

Commit 6731550

Browse files
committed
Prevent hover styles for deleted file items
- hover over deleted files in response preview hides the deleted lines count, but there is no actions, so should not [Image] - deleted files should not be hoverable (no highlight or pointer change) └── packages ├── shared │ └── src │ └── types │ └── file-in-preview.ts └── ui └── src └── components └── editor └── prompt-view └── ResponsePreview ├── ResponsePreview.tsx └── components └── FileItem ├── FileItem.module.scss └── FileItem.tsx
1 parent c27f6d4 commit 6731550

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • packages/ui/src/components/editor/prompt-view/ResponsePreview/components/FileItem

‎packages/ui/src/components/editor/prompt-view/ResponsePreview/components/FileItem/FileItem.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
margin: 0 10px;
4141
}
4242

43-
&:hover {
43+
&:not(.file--deleted):hover {
4444
background-color: var(--vscode-list-hoverBackground);
4545
border-color: var(--cwc-border-color);
4646

0 commit comments

Comments
 (0)