Skip to content

Commit a57d9f4

Browse files
authored
fixing drag preview badge (#3389)
1 parent 2086183 commit a57d9f4

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

packages/@react-spectrum/list/src/DragPreview.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,10 @@ export function DragPreview(props: DragPreviewProps) {
3636
<Grid UNSAFE_className={listStyles['react-spectrum-ListViewItem-grid']}>
3737
<SlotProvider
3838
slots={{
39-
content: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},
4039
text: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-content']},
4140
description: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-description']},
42-
illustration: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-illustration']},
43-
image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-image']},
41+
illustration: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-thumbnail']},
42+
image: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-thumbnail']},
4443
actionButton: {UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'], isQuiet: true},
4544
actionGroup: {
4645
UNSAFE_className: listStyles['react-spectrum-ListViewItem-actions'],

packages/@react-spectrum/list/src/styles.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@
403403
grid-template-areas:
404404
"thumbnail content . badge"
405405
"thumbnail description . badge";
406-
grid-template-columns: auto auto auto 1fr;
406+
grid-template-columns: auto auto 1fr auto;
407407
}
408408

409409
.react-spectrum-ListViewItem-badge {

0 commit comments

Comments
 (0)