Skip to content

Commit

Permalink
feat: use sandbox
Browse files Browse the repository at this point in the history
  • Loading branch information
zrll12 committed Sep 7, 2024
1 parent 59f55bd commit 102ae7f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/(root)/backstage/components/BadgeCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export default function BadgeCard({ survey, showBadge, routeAdmin }: BadgeCardPr

<Space h="md" />

<iframe width="100%" style={{ border: 'none' }} title="111" srcDoc={survey.description} />
<iframe width="100%" style={{ border: 'none' }} title="111" srcDoc={survey.description} sandbox="allow-popups" />

<Button
fullWidth
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@ export default function SurveyBasicContentsEditor({ survey }: SurveyEditorProps)

<Card.Section withBorder inheritPadding py="xs">
<Input.Wrapper label="描述">
<ClickToEdit content={description} onSave={setDescription} alwaysShowBar />
<ClickToEdit
content={description}
onSave={setDescription}
alwaysShowBar />
</Input.Wrapper>
{/*<Textarea*/}
{/* label="描述"*/}
Expand Down

0 comments on commit 102ae7f

Please sign in to comment.