Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ const DeleteIconButton = styled(IconButton)({
color: `${color.tertiary()} !important`,
});

const StyledDraggableChoice = styled(DraggableChoice)({
'& > p': {
margin: '0px !important',
},
});

export class ChoicePreview extends React.Component {
static propTypes = {
alternateResponseIndex: PropTypes.number,
Expand Down Expand Up @@ -50,7 +56,7 @@ export class ChoicePreview extends React.Component {
return (
<ChoicePreviewContainer>
{choice ? (
<DraggableChoice
<StyledDraggableChoice
alternateResponseIndex={alternateResponseIndex}
category={category}
choice={choice}
Expand All @@ -61,7 +67,7 @@ export class ChoicePreview extends React.Component {
categoryId={categoryId}
>
<HtmlAndMath html={choice?.content} />
</DraggableChoice>
</StyledDraggableChoice>
) : null}
<DeleteIconButton aria-label="delete" onClick={this.delete} size="large">
<RemoveCircleOutlineIcon />
Expand Down
3 changes: 3 additions & 0 deletions packages/categorize/src/categorize/choice.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ const StyledCardContent = styled(CardContent)(({ theme }) => ({
},
borderRadius: '4px',
border: '1px solid',
'& p': {
margin: '0px',
},
}));

export class Layout extends React.Component {
Expand Down
Loading