Skip to content

Commit

Permalink
iframe css
Browse files Browse the repository at this point in the history
  • Loading branch information
sesar002 committed Feb 4, 2025
1 parent 26016a1 commit 3c90c18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const classes = {
titleClass: 'font-bold text-[1.25rem] mt-[2.5rem]',
summaryClass: 'cursor-pointer font-bold text-[1.25rem]',
detailsClass: 'mt-[2.5rem]',
iframeClass: 'border-none w-full overflow-y-hidden'
iframeClass: 'border-none w-full h-[380px] overflow-y-hidden'
}

const remarkPlugin = createRemarkPlugin(classes);
Expand Down
2 changes: 1 addition & 1 deletion packages/remark-plugin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function remark({
const iframeSrc = textNode.value.substring('::iframe '.length);
const iframeNode = {
type: 'html',
value: `<iframe height="360" src="https://${iframeSrc}" class="${iframeClass}"></iframe>`
value: `<iframe src="https://${iframeSrc}" class="${iframeClass}"></iframe>`
};
parent.children.splice(index, 1, iframeNode);
}
Expand Down

0 comments on commit 3c90c18

Please sign in to comment.