mirror of
https://github.com/wassname/talk.git
synced 2026-06-27 19:33:06 +08:00
[CORL-1174] Set height on iframe embeds in moderate cards (#3017)
* set height on iframe embeds in moderate cards * fix: removed stripTags from server code Co-authored-by: Wyatt Johnson <me@wyattjoh.ca>
This commit is contained in:
@@ -50,7 +50,8 @@ const YouTubeMedia: FunctionComponent<Props> = ({
|
||||
{showAnimated && (
|
||||
<iframe
|
||||
frameBorder="0"
|
||||
width={width || 450}
|
||||
width={width || 480}
|
||||
height={height || 270}
|
||||
allowFullScreen
|
||||
title="oEmbed"
|
||||
src={`/api/oembed?type=youtube&url=${cleanUrl}&siteID=${siteID}`}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import Joi from "@hapi/joi";
|
||||
import { stripIndent } from "common-tags";
|
||||
|
||||
import { validate } from "coral-server/app/request/body";
|
||||
import { supportsMediaType } from "coral-server/models/tenant";
|
||||
@@ -92,7 +91,7 @@ export const oembedHandler = (): RequestHandler => {
|
||||
|
||||
// Send back the HTML for the oEmbed.
|
||||
res.send(
|
||||
stripIndent`<html>
|
||||
`<html>
|
||||
<style>
|
||||
${style}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user